author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sun, 22 Nov 2009 15:58:09 +0000 (16:58 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 23 Nov 2009 00:20:59 +0000 (16:20 -0800) | ||
commit | b48275998399561780af85d429da3caceeecd2fe | |
tree | 35e86d626dc048e75ed6e470a4571fe76ec78407 | tree | snapshot |
parent | 73a1d050c47dfa0fc758eedd9d3bb60b7449e14f | commit | diff |
grep: unset GREP_OPTIONS before spawning external grep
While we're at it, also unset GREP_COLOR and GREP_COLORS in case colouring
is not enabled, to be on the safe side. The presence of these variables
alone is not sufficient to trigger coloured output with GNU grep, but
other implementations may behave differently.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
While we're at it, also unset GREP_COLOR and GREP_COLORS in case colouring
is not enabled, to be on the safe side. The presence of these variables
alone is not sufficient to trigger coloured output with GNU grep, but
other implementations may behave differently.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c | diff | blob | history | |
t/t7002-grep.sh | diff | blob | history |