/usr/share/augeas/lenses/dist/aliases.aug does not parse valid /etc/aliases file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
augeas (Ubuntu) |
Fix Released
|
Low
|
Raphaël Pinson |
Bug Description
$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
---
$ apt-cache policy augeas-lenses
augeas-lenses:
Installed: 0.8.0-0ubuntu4
Candidate: 0.8.0-0ubuntu4
Version table:
*** 0.8.0-0ubuntu4 0
500 http://
100 /var/lib/
---
according to man aliases the value of an alias can also be a command:
|command or "|exit 67"
when /etc/aliases contains a line like
somebody: |exit
augeas can parse it:
augtool> print /augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
when the command is enclosed between double quotes, such as this
somebody: "|exit 67"
parsing fails:
augtool> print /augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
/augeas/
the quoting is required for commands that contain special characters such as whitespace.
It looks like augeas is not parsing that type of command correctly.
Marking as 'Confirmed' as I was able to reproduce with importance 'Low'.