On 8/15/18 10:21 AM, Phil Sutter wrote: > Add an additional prerequisite to check_enable_color() to make sure > stdout actually points to an open TTY device. Otherwise calls like > > | ip -color a s >/tmp/foo > > will print color escape sequences into that file. Allow to override this > check by specifying '-color' flag more than once. > > Signed-off-by: Phil Sutter <p...@nwl.cc> > --- > Changes since v1: > - Allow to override isatty() check by specifying '-color' flag more than > once.
That adds overhead to my workflow where I almost always have to pipe the output of ip to a pager.