FS#20665 - [filesystem] /etc/profile parses output of ls
Attached to Project:
Arch Linux
Opened by Dave Reisner (falconindy) - Sunday, 29 August 2010, 19:54 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 20 November 2010, 10:06 GMT
Opened by Dave Reisner (falconindy) - Sunday, 29 August 2010, 19:54 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 20 November 2010, 10:06 GMT
|
Details
The opening case statement in /etc/profile calls on /bin/ls
to determine which shell is currently being used. As ls
output can vary, a better solution would be to use
/bin/readlink.
- case $(/bin/ls -l /proc/$$/exe) in + case $(/bin/readlink -e /proc/$$/exe) in |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Saturday, 20 November 2010, 10:06 GMT
Reason for closing: Fixed
Additional comments about closing: filesystem 2010.11-1
Saturday, 20 November 2010, 10:06 GMT
Reason for closing: Fixed
Additional comments about closing: filesystem 2010.11-1
FS#20288?