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

redirect of "ls --color" causes problems



Dear all,

using tcsh on debian sid, I defined an alias for ls

alias ls 'ls --color -F !*'

This works as I expected.

However, doing a redirect results in unwanted "color-codes" being
added in the created file, for example:

ls -l foo.vim >x
cat x
-rw- ..... 2002-11-02 17:11 foo.vim


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.

Is there any way to solve this problem?  

Thanks!

wbr,
Lukas
-- 
Lukas Ruf
http://www.lpr.ch
Wanna know anything about raw ip? 
Join rawip@rawip.org on http://www.rawip.org



Reply to: