lkml.org 
[lkml]   [1999]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux Makefile uses 'ls', causes problems with color-ls (PATCH)
Chris Wedgwood wrote:
> > Unless you specifically alias ls as 'ls --color=no' it will generate
> > color.
>
> 'ls --color=tty' will produce colour only with stdout points to a
> [pseudo]tty.

It's '--color=auto' or "color tty" in /etc/DIR_COLORS
Richard - what distribution are you using that ISN'T like this? If you
have ls using colors in the non-tty case a lot of shell scripts
break. Non-tty ls (like "/bin/ls|cat") has a very well defined output
format since the 70s, and lots of things count on that format.

I have Redhat and Debian handy and they both seem to do the right thing.

-Mitch

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.039 / U:1.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site