Re: [PATCH] unset GREP_OPTIONS in test-lib.sh
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 18, 2009, 22:05 UTC
- Message-ID
- <7v1vjvebem.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1258560919-28054-1-git-send-email-bert.wesarg@googlemail.com>
Bert Wesarg <bert.wesarg@googlemail.com> writes:
> I used to set GREP_OPTIONS to exclude *.orig and *.rej files. But with this > the test t4252-am-options.sh fails because it calls grep with a .rej file:
Yuck. Will apply.
That actually makes me worried about a different issue.
Do we kill that environment variable when we call out to external grep in grep.c? If not, we should. An alternative is to teach our internal one to also honor it, but I personally do not find it too attractive to mimic the design mistake of GREP_OPTIONS myself.