This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]