On 2015-07-14 11:44:24 +0200, Tollef Fog Heen wrote:
> Setting GREP_COLORS to a value does nothing you also pass --color to
> grep.  The documentation says
> 
>        GREP_COLORS
>               Specifies the colors and other attributes used to
>               highlight various parts of the output.  Its value is a
>               colon-separated list of capabilities that defaults to
>               ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36 with the
>               rv and ne boolean capabilities omitted (i.e., false).
>               Supported capabilities are as follows.
> 
> Nothing here implies this isn't on by default, at least for TTY output.

IMHO, this is a documentation issue. Color output must not be assumed
to be on by default: this would not be conforming and would probably
break many scipts.

I don't think that this should also be on for TTY, as this could break
the use of tools like "expect".

The above paragraph could mention the --color option.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to