[Bug translator/20510] New: stap -L colorizes non-tty stdout

jistone at redhat dot com sourceware-bugzilla@sourceware.org
Tue Aug 23 19:47:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=20510

            Bug ID: 20510
           Summary: stap -L colorizes non-tty stdout
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
          Assignee: systemtap at sourceware dot org
          Reporter: jistone at redhat dot com
  Target Milestone: ---

Commit 1ad27a4b0b6aa for PR14787 added colorize() calls to stap -L output. 
That coloring is predicated on color_errors = isatty(STDERR_FILENO), which is
fine for error messages that do go on stderr, but -L writes to stdout.

So if you run a command like "stap -L 'syscall.*' >syscall.list", stderr is
still a tty, and that file will include a bunch of colorization escapes.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list