bug-coreutils
[Top][All Lists]
Advanced

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

Re: ls should not color output when --color=auto is used in environment


From: Andreas Schwab
Subject: Re: ls should not color output when --color=auto is used in environment TERM=dumb
Date: Wed, 13 Jun 2007 10:25:57 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux)

"Lenny Domnitser" <address@hidden> writes:

> Some terminals such as M-x shell in Emacs don't understand color
> output, and set the TERM environment variable to "dumb". ls should
> check that variable when turning on color from --color=auto.

The value of TERM has no influence on the color output, only LS_COLORS
does, which is produced by dircolors (which does check TERM).  The
option --color=auto is synonymous to --color=tty, it only matters
whether the output is a tty.  If you don't want any colorization you
need to unset LS_COLORS.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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