[4709] in RedHat Linux List
Re: try #3: dircolors DOES NOT wORK
daemon@ATHENA.MIT.EDU (Jonas Kvarnstrom)
Sat Nov 16 16:37:06 1996
Date: Sat, 16 Nov 1996 22:33:22 +0100
From: Jonas Kvarnstrom <jonkv@lysator.liu.se>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Jeffrey Ely 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 haven't tested this, but are you really using "eval `dircolors
/etc/DIR_COLORS`" (with the backquotes), or are you copying the output
from dircolors and then executing the commands you copied? According to
the bash manual, the arguments to eval are concatenated before they are
executed, and as you say,
> LS_COLORS='di=36';export LS_COLORS
works, but
> LS_COLORS='di=36'
> export LS_COLORS
does not. The output of dircolors is on two lines (which does not
work), but would apparently be concatenated into one line by the "eval"
command (which should work).
In any case, I am using dircolors with zsh and it seems to be working.
--
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