[4687] in RedHat Linux List

home help back first fref pref prev next nref lref last post

try #3: dircolors DOES NOT wORK

daemon@ATHENA.MIT.EDU (Jeffrey Ely)
Sat Nov 16 12:39:01 1996

Date: Sat, 16 Nov 1996 11:35:25 -0600
From: Jeffrey Ely <jeff@saaz.econ.nwu.edu>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


There were responses to my previous try, but the responders
apparently did not read my post.

I am aware that one must issue 
ls --color

in order to get color ls.  My post was about dircolors.
dircolors is supposed to read a file and set the variable
LS_COLORS according to the color specs in the file.

What I am saying is that dircolors fails to
properly set LS_COLORS.  This is why I am unable to change
the default colorization and why others cannot get
colorization of 
various file types.  If you read my original post you
will understand what the problem is.  Try it for yourself.
Read the man pages.

Here is what I originally wrote:

I have read the recent threads on dircolors.  I understand that
          dircolors defaults to using its own compiled-in color scheme.

          I want to modify /etc/DIR_COLORS and do eval 'dircolors /etc/DIR_COLORS'.
          I see the following:

          [jeff@hallertau jeff]$ dircolors /etc/DIR_COLORS
          LS_COLORS='no=00:fi=00:di=36:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:';
          export LS_COLORS          

          notice the di=36 is changed from the defaults.  This should produce
          non-bold cyan directories.  But nothing changes.  If I do

          LS_COLORS='di=36';export LS_COLORS

          the directory colors are changed as I want them.

          BUT, if I do:

          LS_COLORS='di=36'
          export LS_COLORS

          there is no change.


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post