This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ls --color: special char in redirected output
- From: GrahamC <grahamc001uk at yahoo dot co dot uk>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 24 Jun 2014 10:24:21 +0100
- Subject: Re: ls --color: special char in redirected output
- Authentication-results: sourceware.org; auth=none
- References: <CAK25myuiLJydke76M6HN-+NWjedG7QwaeBhJg6TU5Pca2XO2ZQ at mail dot gmail dot com>
- Reply-to: GrahamC <grahamc001uk at yahoo dot co dot uk>
On Monday, 23 June 2014, 14:57, Thomas Anderson <t03.anders0n@gmail.com> wrote:
> Hi, after a recent upgrade (maybe the 20) I have some problem with
> special characters and ls --color
>
> For example:
>
> $ ls --color
> file.txt temp/
>
> is ok
>
> but
>
> $ ls --color > ls.txt
>
> is not
>
> $ less ls.txt
>
> file.txt
> ls.txt
> ESC[0mESC[01;34mtempESC[0m/
>
>
> I'm on Windows 7 with the 32 bit version.
>
> Bye,
> t03
Try ls --color=auto or ls --color=tty
or set an alias: alias ls='ls --color=tty'
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple