Problems with 'dircolors'

Eric Blake ebb9@byu.net
Thu Oct 12 00:43:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Long, Phillip GOSS on 10/11/2006 3:56 PM:
> Mea culpa; I dropped the ball.
> 
> Try putting this line immediately after the `eval' line:
> 	export LS_COLORS

Useless advice.  Have you looked at the output of dircolors?  It already
includes the necessary export line.  Not to mention that if LS_COLORS were
left a shell variable instead of exported, ls would not be able to see the
changes in the first place.  Trust me, dircolors is designed to work with
ls, so any extra steps would be the sign of a bug in dircolors.

Oh, by the way, if you use tcsh, be aware that it also uses the LS_COLORS
environment variable internally, but that it does not understand quite as
many options as ls does and gripes about what it doesn't understand, which
is why I had to patch the cygwin version of LS_COLORS to silence stderr
during the tcsh eval.  Hopefully, a newer release of tcsh will allow me to
remove that hack from coreutils.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFLY+N84KuGfSFAYARAiQvAJ9wD/0gSpeHA5kaM4VXDU+NawZ1KwCgit2M
l6TESRhU8KMQ6eRYIW9TqH0=
=iP0q
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list