delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/23/12:45:31

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ls --color: special char in redirected output
References: <CAK25myuiLJydke76M6HN-+NWjedG7QwaeBhJg6TU5Pca2XO2ZQ AT mail DOT gmail DOT com>
In-reply-to: <CAK25myuiLJydke76M6HN-+NWjedG7QwaeBhJg6TU5Pca2XO2ZQ@mail.gmail.com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019