diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-05-29 16:41:50 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-05-29 16:42:43 -0700 |
commit | 4ac5fa8959c6366f64815de3dd94e1327242af4a (patch) | |
tree | 4dbd20d010366f952f6d352d226077201b927779 /NEWS | |
parent | da070834819cf08ee25a209aa70ce5e57e340e9b (diff) | |
download | grep-4ac5fa8959c6366f64815de3dd94e1327242af4a.tar.gz |
grep: deprecate GREP_COLOR
This is to avoid confusion such as that reported by Cholden in:
https://bugs.gnu.org/55641
* src/grep.c (main): Warn if GREP_COLOR has an effect.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,6 +11,10 @@ GNU grep NEWS -*- outline -*- release 2.5.3 (2007), now warn that they are obsolescent and should be replaced by grep -E and grep -F. + The confusing GREP_COLOR environment variable is now obsolescent. + Instead of GREP_COLOR='xxx', use GREP_COLORS='mt=xxx'. grep now + warns if GREP_COLOR is used and is not overridden by GREP_COLORS. + Regular expressions with stray backslashes now cause warnings, as their unspecified behavior can lead to unexpected results. For example, '\a' and 'a' are not always equivalent |