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:
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. */ }