Bug 126994
| Summary: | OPTIONS not used from /etc/DIR_COLORS file | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Anand Buddhdev <arb> |
| Component: | coreutils | Assignee: | Tim Waugh <twaugh> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-04-18 16:48:00 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 150225 | ||
Still occurs in FC5 with coreutils-5.93-7.2. Sort of odd that OPTIONS is ignored like that. OPTIONS is intentionally ignored. From dircolors.c:
else if (c_strcasecmp (keywd, "OPTIONS") == 0
|| c_strcasecmp (keywd, "COLOR") == 0
|| c_strcasecmp (keywd, "EIGHTBIT") == 0)
{
/* Ignore. */
}
|
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040518 Firefox/0.8 Description of problem: The file /etc/DIR_COLORS has a variable called OPTIONS which should allow a user to set certain options to be passed to ls. However, the script /etc/profile.d/colorls.sh, which reads the file /etc/DIR_COLORS, does not make any use of the OPTIONS variable. Hence any setting I place on the OPTIONS line is ignored. Version-Release number of selected component (if applicable): coreutils-5.0-34.1 How reproducible: Always Steps to Reproduce: 1. Edit /etc/DIR_COLORS (or copy /etc/DIR_COLORS to ~/.dir_colors and edit) and put in some options for ls on the OPTIONS line. 2. Start a new copy of your terminal program, such as xterm, or gnome-terminal 3. Run "ls" and you'll see that your custom options are being ignored. Actual Results: My custom ls options were ignored. Expected Results: I had placed -F in the options line, to make ls draw slashes after directory names, so I had expected ls to show slashes after the directory names. Additional info: