News for hackers. Stuff that matters.
Re:Disabling ANSI color output by JoshTriplett on Wednesday February 07, 2018 @03:27AM (#16323020)
> This seems unfortunate; scripts could just unset GREP_OPTIONS if they care.

grep is portable, and much older than GREP_OPTIONS. A script shouldn't be expected to fix any random non-standard idiosyncrasy of the local version of grep.

Re:Disabling ANSI color output by racer-v on Wednesday February 07, 2018 @04:03AM (#16323157)
Fair enough; since GREP_OPTIONS seems only useful for interactive sessions, perhaps non-interactive shells should purge it from the environment (e.g. with BASH_ENV).

It would be great if grep could figure out whether its parent process is an interactive shell or a script, but there doesn't seem to be a reliable way to do that.