Bug 431315
Summary: | /etc/profile.d/colorls.csh syntax error | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Charles R. Anderson <cra> | ||||||
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | rawhide | CC: | nalin, twaugh | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | coreutils-6.10-5.fc9 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2008-02-04 23:40:56 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Charles R. Anderson
2008-02-02 17:13:57 UTC
Created attachment 293799 [details]
patch to fix colorls.csh
Thanks for report... I did only quick check for csh script and missed that problem...sorry for that, thanks for report, will fix that in next rawhide coreutils build after weekend. Created attachment 293802 [details]
better fix for colorls.csh
The first patch doesn't work if LS_COLORS= is in the environment already (e.g.
LS_COLORS is there, but blank). This patch will set LS_COLORS correctly in
that case, mimicking the behavior of /etc/profile.d/colorls.sh. The nested
"if" was the only way I could get it to work right in tcsh.
Problem is hopefully fixed in coreutils-6.10-5.fc9 - so closing RAWHIDE - anyway I used completely different style, so please feel free to add any comments about syntax of that layout (with added 256 colors support). TIA. |