ls colors messing up pipes
When I try to do anything involving the command `ls`; I get weird escape sequences that I an guessing refer to the colors, because --color=no gets rid of them.
For example, ls / | less gives me this: Code:
ESC[00mESC[01;34mbinESC[00m/ |
You should use "--color=auto" in any aliases for ls. That way you get color when the output is going directly to a terminal, but not when it's going into a file or pipe.
|
All times are GMT -5. The time now is 11:34 PM. |