"Lenny Domnitser" <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED]
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."


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to