bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make the colors different for a symbol link pointing to a fil


From: Eric Blake
Subject: Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?
Date: Wed, 30 Dec 2009 19:58:03 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

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

According to Peng Yu on 12/30/2009 7:51 PM:
>> Then that is probably a feature request that has not yet been implemented.
>>  Would you like to try your hand at coding it?
> 
> Do you mean that I modify the source code of coreutils? I'd like to
> take a look at it. Would you please let me know which files might be
> relevant?

Sure - you'll need to coordinate between src/dircolors.c to output a new
key/value pair in LS_COLORS, then in src/ls.c to recognize that value as a
new coloring scheme for symlinks.  There are also several existing tests
in tests/ls/* that can be used as starting points for developing a test
for your new feature.

- --
Don't work too hard, make some time for fun as well!

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

iEYEARECAAYFAks8EzsACgkQ84KuGfSFAYCYAwCggy37p6MHIWADVpfDNDgWg8nJ
MysAoNXwZ/1sYf/Eyd8MI5NlYgBdCKui
=SUfH
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]