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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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
Comment by Leonid Isaev (lisaev) - Sunday, 14 November 2010, 19:44 GMT
Duplicate of  FS#20288 ?

Loading...