Skip to content

Commit 01ae841

Browse files
committed
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 <[email protected]>
1 parent 96d69b5 commit 01ae841

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,7 @@ ifeq ($(uname_S),SunOS)
702702
NO_HSTRERROR = YesPlease
703703
NO_MKDTEMP = YesPlease
704704
OLD_ICONV = UnfortunatelyYes
705+
NO_EXTERNAL_GREP = YesPlease
705706
ifeq ($(uname_R),5.8)
706707
NO_UNSETENV = YesPlease
707708
NO_SETENV = YesPlease

0 commit comments

Comments
 (0)