Thank you for opening this bug and helping make Ubuntu better. The
"ESC[m" sequence at the end of a 'ls --color' (or --color=auto, or
--color=always) is added to reset the colouring to the default values.

I am not sure, however, on how necessary this is -- a _few_ tests I
performed, on a hacked version of 'ls' that does *not* add in the reset
sequence showed no problems -- but, again, (1) few tests; (2) rather
incomplete; (3) and I am quite sure this is there because some terminal
needs it...

Nevertheless, I cannot repeat your problem -- if I pipe 'ls' output to
another programme, I see *no* colouring codes being output. As such, I
wonder if you are forcing '--color=always' to the pipe. This would, most
probably, be a bad move.

** Changed in: coreutils (Ubuntu)
   Importance: Undecided => Low

** Changed in: coreutils (Ubuntu)
       Status: New => Incomplete

-- 
ls --color=always outputs possibly-extraneous ESC [ m on separate line, 
confusing less -FXR
https://bugs.launchpad.net/bugs/494663
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to