author | Junio C Hamano <gitster@pobox.com> | |
Fri, 24 Jul 2009 05:30:07 +0000 (22:30 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 24 Jul 2009 16:20:34 +0000 (09:20 -0700) | ||
commit | 01ae841ccf3aa5d5331a4e6aed6122fee6617740 | |
tree | 14bacbc8714b0c09654f777d46395b7b86089d9d | tree | snapshot |
parent | 96d69b554325b6caa323428e64fba62ca033310d | commit | diff |
SunOS grep does not understand -C<n> nor -e
The first "grep -C1" test in t7002 does not pass on my SunOS-5.11-i86pc,
and that is not because our way to spawn external grep is broken, but
because the native grep does not understand -C<n>.
It turns out that Peff was also using this option himself because our
Makefile doesn't do that automatically. Brandon Casey uses SUNWspro
compiler without having to set this, and it turns out that the compiler
does not define preprocessor macro __unix__ which made him always use the
built-in grep, never an external one.
Let's be more explicit and say that we do not use external grep on Suns.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The first "grep -C1" test in t7002 does not pass on my SunOS-5.11-i86pc,
and that is not because our way to spawn external grep is broken, but
because the native grep does not understand -C<n>.
It turns out that Peff was also using this option himself because our
Makefile doesn't do that automatically. Brandon Casey uses SUNWspro
compiler without having to set this, and it turns out that the compiler
does not define preprocessor macro __unix__ which made him always use the
built-in grep, never an external one.
Let's be more explicit and say that we do not use external grep on Suns.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history |