Re: redirect of "ls --color" causes problems
Lukas Ruf <ruf@rawip.org> writes:
> using tcsh on debian sid, I defined an alias for ls
>
> alias ls 'ls --color -F !*'
'--color=auto' might be better for your purposes; it only inserts the
color magic if its output is connected to a terminal.
> I would like to make use of the color feature however I would like
> also to make use of redirections without unalias'ing ls always.
You could also use /bin/ls explicitly to avoid the alias.
--
David Maze dmaze@debian.org http://people.debian.org/~dmaze/
'chsh /bin/zsh', then ls() { /bin/ls --color=auto --classify "$@"; }
Reply to: