On Thu, Aug 06, 2009 at 08:08:12PM -0500, Brandon Casey wrote:
You'll notice that I changed your grep -E to an egrep and dropped the -e.
I do not see any other grep which uses -e, and I seem to recall Jeff King
actively removing -e claiming that some greps do not recognize it. I do not
have a perfect memory though, so apologies to Jeff if I am mistaken.
Fortunately git does have a perfect memory:
$ git log -1 --all-match --author=peff --grep=grep
commit 759ad19e772a79a2a5ae6b7377d57eb21d29e6a0
Author: Jeff King [off-list ref]
Date: Wed Oct 22 15:22:53 2008 -0400
submodule: fix some non-portable grep invocations
Not all greps support "-e", but in this case we can easily
convert it to a single extended regex.
The grep in question is Solaris 8's /usr/bin/grep (which also needs
"egrep" instead of "-E", as you already did).
-Peff