X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=IAKICsNzT1LBnw4j
	KyeYjNnzVDIkxAvJvLcAtQuCZ6tTpltLZex84j7anpavbDlpruPGcm5lJB6vZ5r3
	65/31J2m/lSghV6pZIixJXhLw5tI8fOuh/BvwDobYIx37Jk30tN61AOhIQGzGWYg
	JyqWxfYwYK4+NL+MjplmNQnB/bk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=yBkZimg7Qm8RcZCBCeMs/+
	WhZWs=; b=bqpVek5QadXJKs+XU8h5rvE+ppg9BwFHHT9RmIu8dowe2Zgd4Ei9F9
	DiD+khZwfxpqg35IwER2HGWCUJyl9IOYtdD4UHj870Ohef82Hu9pUP0fjdFpALx0
	+jXiMMsLFAsXSPdP5hEGDLXydl7R83N86Aa/YQoU2Wrij8EZCmqak=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173019pub.verizon.net
Message-id: <53A85975.3060501@cygwin.com>
Date: Mon, 23 Jun 2014 12:44:37 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: ls --color: special char in redirected output
References: <CAK25myuiLJydke76M6HN-+NWjedG7QwaeBhJg6TU5Pca2XO2ZQ@mail.gmail.com>
In-reply-to: <CAK25myuiLJydke76M6HN-+NWjedG7QwaeBhJg6TU5Pca2XO2ZQ@mail.gmail.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

On 06/23/2014 09:57 AM, Thomas Anderson 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/

Add the "-R" flag.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

