2 ms·
> 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 expecte
by JoshTriplett 9y ago
> 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.
- racer-v 9y agoFair 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.