Bug 40581 - Instructions in /etc/DIR_COLORS and /etc/profile.d/colorls.sh do not match
Instructions in /etc/DIR_COLORS and /etc/profile.d/colorls.sh do not match
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: fileutils (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-05-14 15:43 EDT by David Mandala
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-05-14 15:43:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description David Mandala 2001-05-14 15:43:53 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2 i686)

Description of problem:
the instructions in /etc/DIR_COLORS states to copy DIR_COLORS into
.dir_colors in ~ ands modify that to overide the /etc/DIR_COLORS settings.
However the files in /etc/profile.d/colorls.* actually look for the name
.dircolors!!!!

How reproducible:
Always

Steps to Reproduce:
1.copy /etc/DIR_COLORS to ~.dir_colors
2.edit file and change some color settings
3.log into a fresh login shell and do ls colors will not take effect.
	

Actual Results:  colors remain the same as the /etc/DIR_COLORS defaults

Expected Results:  colors change into my chosen colors

Additional info:

FIX -- edit /etc/profile.d/colorls.* files and change the lines in:

colorls.sh:
 From:
[ -f "$HOME/.dircolors" ] && eval `dircolors --sh $HOME/.dircolors` &&
COLORS=$HOME/.dircolors
 To:
[ -f "$HOME/.dir_colors" ] && eval `dir_colors --sh $HOME/.dir_colors` &&
COLORS=$HOME/.dir_colors

and 

colorls.csh

 From:
test -f ~/.dircolors && eval `dircolors -c ~/.dircolors` && set
COLORS=~/.dircolors

 To:

test -f ~/.dir_colors && eval `dir_colors -c ~/.dir_colors` && set
COLORS=~/.dir_colors
Comment 1 Bernhard Rosenkraenzer 2001-05-17 08:38:19 EDT
fileutils-4.1-2 handles both names.

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