delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
To: | cygwin AT cygwin DOT com |
From: | "Joe" <jdenicola AT maxwellsystems DOT com> |
Subject: | Re: ls -l | less shows "escape" chars |
Date: | Thu, 1 Jul 2004 11:09:29 -0400 |
Lines: | 40 |
Message-ID: | <cc19fa$282$1@sea.gmane.org> |
References: | <cc112h$9na$1 AT sea DOT gmane DOT org> <cc121a$cgc$1 AT sea DOT gmane DOT org> <cc12jp$e5s$1 AT sea DOT gmane DOT org> |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | 146.145.51.166 |
X-Newsreader: | Microsoft Outlook Express 6.00.2800.1409 |
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. "geneSmith" <gene DOT smith AT sea DOT siemens DOT com> wrote in message news:cc12jp$e5s$1 AT sea DOT gmane DOT org... > Joe wrote, On 7/1/2004 9:02 AM: > > > Do you have ls aliased to "ls --color"? > > > > Try: /bin/ls | less > > That fixes it. Should I not use color? > > > > > "geneSmith" <gene DOT smith AT sea DOT siemens DOT com> wrote in message > > news:cc112h$9na$1 AT sea DOT gmane DOT org... > > > >>When I do "ls -l | less" a typical line looks like this with "ESC" in > >>reverse video and other weird chars. What causes this? Can it be fixed? > >> > >>-rwx------+ 1 Administ ???????? 1392640 Jul 1 08:31 > >>ESC[01;32mNTUSER.DATESC[0m > >> > >>-- > >>Lit up like Levy's > > > -- > Lit up like Levy's > > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |