git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC] SunOS grep does not understand -C<n>
@ 2009-07-24  5:30 Junio C Hamano
  2009-07-24  5:41 ` Jeff King
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Junio C Hamano @ 2009-07-24  5:30 UTC (permalink / raw)
  To: git

I noticed that 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>.

Is it just me and my installation (i.e. I might have failed to install
saner grep from the distribution that everybody uses), or everybody on
SunOS is using this option himself because our Makefile doesn't do that
automatically for them?

Just in case it is the latter, here is a proposed patch.

---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index bde27ed..daf4296 100644
--- a/Makefile
+++ b/Makefile
@@ -728,6 +728,7 @@ ifeq ($(uname_S),SunOS)
 	NO_MKDTEMP = YesPlease
 	NO_MKSTEMPS = YesPlease
 	NO_REGEX = YesPlease
+	NO_EXTERNAL_GREP = YesPlease
 	ifeq ($(uname_R),5.7)
 		NEEDS_RESOLV = YesPlease
 		NO_IPV6 = YesPlease

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-26  9:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24  5:30 [PATCH/RFC] SunOS grep does not understand -C<n> Junio C Hamano
2009-07-24  5:41 ` Jeff King
2009-07-24  6:27   ` Junio C Hamano
2009-07-24  7:09     ` Jeff King
2009-07-24  6:29 ` [PATCH/RFC] FreeBSD iconv function signature is "old" Junio C Hamano
2009-12-26  9:09   ` Junio C Hamano
2009-07-24 15:43 ` [PATCH/RFC] SunOS grep does not understand -C<n> Brandon Casey
2009-07-24 15:55   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).