public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: ls --color: special char in redirected output
@ 2014-06-26 12:33 Thomas Anderson
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Anderson @ 2014-06-26 12:33 UTC (permalink / raw)
  To: cygwin; +Cc: grahamc001uk

> Try ls --color=auto  or  ls --color=tty
> or set an alias:  alias ls='ls --color=tty'

Thank you, I added "=auto" to the alias and now it is ok.

(sorry for posting but the behaviour has changed and It was difficult
(for me) to search the solution)

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ls --color: special char in redirected output
  2014-06-23 13:57 Thomas Anderson
  2014-06-23 16:45 ` Larry Hall (Cygwin)
@ 2014-06-24  9:24 ` GrahamC
  1 sibling, 0 replies; 4+ messages in thread
From: GrahamC @ 2014-06-24  9:24 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ls --color: special char in redirected output
  2014-06-23 13:57 Thomas Anderson
@ 2014-06-23 16:45 ` Larry Hall (Cygwin)
  2014-06-24  9:24 ` GrahamC
  1 sibling, 0 replies; 4+ messages in thread
From: Larry Hall (Cygwin) @ 2014-06-23 16:45 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* ls --color: special char in redirected output
@ 2014-06-23 13:57 Thomas Anderson
  2014-06-23 16:45 ` Larry Hall (Cygwin)
  2014-06-24  9:24 ` GrahamC
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Anderson @ 2014-06-23 13:57 UTC (permalink / raw)
  To: cygwin

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-26 12:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-26 12:33 ls --color: special char in redirected output Thomas Anderson
  -- strict thread matches above, loose matches on Subject: below --
2014-06-23 13:57 Thomas Anderson
2014-06-23 16:45 ` Larry Hall (Cygwin)
2014-06-24  9:24 ` GrahamC

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).