Bug 435789 - /etc/profile.d/colorls.csh prints $LS_COLORS
Summary: /etc/profile.d/colorls.csh prints $LS_COLORS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-03 21:52 UTC by Peter Staubach
Modified: 2008-03-07 20:25 UTC (History)
1 user (show)

Fixed In Version: 6.9-15.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-07 19:52:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Staubach 2008-03-03 21:52:56 UTC
Description of problem:

The script, /etc/profile.d/colorls.csh, prints the value of the shell
variable, LSCOLORS, if it is set already.

Version-Release number of selected component (if applicable):


How reproducible:

Always.

Steps to Reproduce:
1. cd /etc/profile.d
2. setenv LS_COLORS "*bug*"
3. csh /etc/profile.d/colorls.csh
  
Actual results:

You will see:

*bug*: No match

Expected results:

You should see no output at all.

Additional info:

Comment 1 Peter Staubach 2008-03-03 21:54:28 UTC
The problem is that the test to check to see if the value of $LS_COLORS
on line 3 is not coded quite correct.  The $LS_COLORS should have double
quotes around to keep it from being expanded and attempting to match a
filename.

Comment 2 Ondrej Vasik 2008-03-04 14:10:17 UTC
Thanks for report, fixed in coreutils-6.9-14.fc8 and coreutils-6.10-10.fc9

Comment 3 Fedora Update System 2008-03-04 14:12:17 UTC
coreutils-6.9-14.fc8 has been submitted as an update for Fedora 8

Comment 4 Peter Staubach 2008-03-04 14:19:00 UTC
Thanx for your quick handling!

Comment 5 Fedora Update System 2008-03-07 19:52:02 UTC
coreutils-6.9-15.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Peter Staubach 2008-03-07 20:25:38 UTC
Much better.  Thanx!


Note You need to log in before you can comment on or make changes to this bug.