From: gil@netcom.com (Gilbert Nardo) Subject: Re: [Q] How to colorize directory listings? Date: Tue, 4 May 1993 17:19:02 GMT
dennisf@denix.elk.miles.com (Dennis Flaherty) writes:
> In article <1s4buo$17q@usenet.INS.CWRU.Edu> bf703@cleveland.Freenet.Edu (Patrick J. Volkerding) writes:
> > Back when that "experimental" SLS A1 disk was floating around, I
> > grabbed a copy and tried it out. One thing I really liked about it
> > was the way it colored filenames according to file protections. I
> > looked all over in the man pages and other places, and can't figure
> > out how to turn on or configure this feature.
> > Anyone know how to get this working?
> > Thanks!
>
> If the 'ls' has been built from fileutils-3.4 with the color-ls patch,
> it's either enabled or disabled (depending on the patch) by 'ls -f'.
> There is a new version of fileutils, 3.5, and since '-f' is being used
> by something else, the color-ls patch will have to use '-o'. I've
> passed it around for a few people to test it, but if you want a copy,
> send me email.
A note of caution when using this ls: some scripts rely on
getting names via ls, but with the color option the command returns
filenames with prepended escape codes (set color codes). This becomes
a problem when the scripts are doing things like generating makefiles
which require exact target name matching. If you are set on using
the ls with color, then you may have to tack on the --no-color option
for these cases (I don't know if there's an environment variable you
can set to have this toggle on and off).
-- Gil Nardo | gil@netcom.com Migrant Computing Services | (415)664-1032 (voice) 1032 Irving Street, #435 |----------------- San Francisco, 94122 | Save the Universe: Stop Entropy Now!