Gwinel / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

likwid-pin pollutes following line with ANSI color sequence #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. likwid-pin -c L:3 ls -l | grep ^total

What is the expected output? What do you see instead?

Expect 'total 123', but see nothing.

What version of the product are you using?

3.0

Please provide any additional information below.

The ANSI escape sequence that reverts to normal coloring after the blue 
(default) likwid-pin message line occurs *after* the newline.

Consequently, there are completely invisible characters at the beginning of the 
line *following* likwid-pin's blue output line, which causes unexpected 
behavior when one attempts to grep the output (as illustrated above) with a 
start-of-line anchor.

likwid-pin should emit the terminating escape sequence *before* the newline in 
order that the following line is not polluted.

Original issue reported on code.google.com by emmet.ca...@gmail.com on 24 Oct 2013 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by jan.trei...@gmail.com on 24 Oct 2013 at 6:49

GoogleCodeExporter commented 9 years ago
This issue was closed by revision c140e29fabbf.

Original comment by jan.trei...@gmail.com on 14 Nov 2013 at 12:52