Henrik Edlund <[EMAIL PROTECTED]> wrote:
> On Tue, 24 Mar 1998, Steve "Stevers!" Coile wrote:
>
> > On Mon, 23 Mar 1998, Dan Cyr wrote:
> > >edit .bashrc in your home directory and add
> > >
> > >alias ls='ls --color=yes'
> >
> > Better to use "--color=tty".
>
> "--color" works equally good.
No, it doesn't always.
For instance:
% /bin/ls -a --color > foo
% cat -v foo
^[[01;34m.^[[0m
^[[01;34m..^[[0m
^[[0mfoo^[[0m
With --color, any programs which take the ouput of ls through, say, a
pipe will be confused by the escape codes. The --color=tty option will
only output escape sequences (and colors) to the screen.
sb
--
"Men of lofty genius are most active
when they are doing the least work".
-- Leonardo da Vinci
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.