Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
To: cygwin@cygwin.com
From: geneSmith <gene.smith@sea.siemens.com>
Subject: Re: ls -l | less shows "escape" chars
Date: Thu, 01 Jul 2004 12:27:53 -0400
Lines: 18
Message-ID: <cc1e2r$f56$1@sea.gmane.org>
References: <cc112h$9na$1@sea.gmane.org> <cc121a$cgc$1@sea.gmane.org> <cc12jp$e5s$1@sea.gmane.org> <cc19fa$282$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: 66.168.89.166
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
In-Reply-To: <cc19fa$282$1@sea.gmane.org>

Joe wrote, On 7/1/2004 11:09 AM:

> Either don't use color or change it to --color=auto.
> 
> I alias ls to "ls -x -color=auto".
> 
> Then "ls | less" gives you columns without escape codes.
> 
> If you want a single column, use "ls -1 | less".  The -1 overrides the -x in
> the alias and gives one column.  Or leave out the -x if you never want
> columns when piping to less.

Thanks for the info. However when I put
alias less="less -R"
in my ~/.bash_profile it seem to work and and still get colors when I do 
ls -l | less.

-gene


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

