Re: "ls | less" whith 2.2.12

Pauline Middelink (middelin@polyware.nl)
Sun, 19 Sep 1999 02:03:17 +0200


On Sat, Sep 18, 1999 at 04:12:13PM +0200, Peter Hanecak wrote:
> On Fri, 17 Sep 1999, ---daniele--- wrote:
>
> > On Fri, Sep 17, 1999 at 12:49:12PM -0400, owner-linux-kernel-digest@vger.rutgers.edu wrote:
> >
> > The output of
> > /usr/src/linux # ls | less
> > whith 2.2.12
> > is
> > ESC[0mESC[0mCOPYINGESC[0m
> > ....
> >
> > There is problem whith console driver ????
>
> you have possibly set following alias:
>
> alias ls="ls --color"
>
> which makes ls to produce colored output.
>
> whether ls is able to detects that output is not going to stdout and then
> turn coloring off i do not know.

it does.

alias ls="ls --color=tty"

Met vriendelijke groet,
Pauline Middelink

-- 
PGP Key fingerprint = DE 6B D0 D9 19 AD A7 A0  58 A3 06 9D B6 34 39 E2
For more details look at my website http://www.polyware.nl/~middelin

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/