Re: git grep '(' = segfault
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 27, 2009, 23:18 UTC
- Message-ID
- <7vd4axwurv.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <40aa078e0904271202ye89ebf2wf417c623d8fe5689@mail.gmail.com>
Erik Faye-Lund <kusmabite@googlemail.com> writes:
> Yeah, thanks for explaining. But isn't this functionality kind of
> redundant since we have the -E switch?
> As far as I can see, "git grep -E "(bar|boz)" should do the same thing
> as "git grep -e foo --and '(' -e bar --or -e boz ')'"...With -E, --or is not strictly necessary.
With only -E, however, it is cumbersome to express what --and can. Once you learn the handiness of --and, naturally you would start wanting to be able to say --or (especially if you do not even know about -E).