This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/20510] New: stap -L colorizes non-tty stdout
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 23 Aug 2016 19:47:34 +0000
- Subject: [Bug translator/20510] New: stap -L colorizes non-tty stdout
- Auto-submitted: auto-generated
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.