bug-fileutils
[Top][All Lists]
Advanced

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

Re: PROBLEM: ls --color outputs undesirable leader and trailer


From: Bob Proulx
Subject: Re: PROBLEM: ls --color outputs undesirable leader and trailer
Date: Tue, 29 Apr 2003 10:58:19 -0600
User-agent: Mutt/1.3.28i

gregory mott wrote:
> ls --version:    ls (fileutils) 4.1       (redhat7.3+up2date)
> sort --version:  sort (textutils) 2.0.21  (redhat7.3+up2date)
> 
> problem:  ls --color's output is almost compatible with sort, but is
> wanting of a minor modification.

Is 'ls --color' something you are doing or something Redhat is doing?

I recommend that if you want color that you try using the auto option
instead of always.  Try 'ls --color=auto' instead.  That turns off the
escape sequences when the output is a pipe.  Not specifying auto is
the same as saying --color=always.

Since 'ls' is already sorting the output I assume your sort example
was just a simple way to illustrate a more general problem of handling
the escape sequences, right?  Wondering if you are having trouble with
'locale' sorting because LANG is set.  But that would affect sort as
well so probably not.

Bob




reply via email to

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