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: John Cowan
Subject: Re: ls should not color output when --color=auto is used in environment TERM=dumb
Date: Wed, 13 Jun 2007 16:47:16 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Micah Cowan scripsit:

> I would expect virtually every application that sends special terminal
> control sequences (such as those used for coloring) to respect the TERM
> variable and relevant terminal databases; it's just good manners.

I agree.  Since the documented behavior of --color is to color the output,
rather than (say) to send particular escape sequences to the output,
failing to notice that the output cannot be colored (given that the
costs of finding that out are low) is indeed a bug, whether documented
or not.

> It seems to me, then, that ls should never colorize in the case that
> LS_COLORS is /set/, but has a null value. 

+1

-- 
Schlingt dreifach einen Kreis vom dies!    John Cowan <address@hidden>
Schliesst euer Aug vor heiliger Schau,     http://www.ccil.org/~cowan
Denn er genoss vom Honig-Tau,
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)




reply via email to

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