From: Junio C Hamano Date: Fri, 19 Feb 2016 17:38:17 GMT Subject: Re: Test failures with GNU grep 2.23 Message-ID: In-Reply-To: <20160219115928.GA10204@sigill.intra.peff.net> Jeff King writes: > Yeah, I'd worry that "-a" is not portable. OTOH, BSD grep seems to have > it, so between that and GNU, I think most systems are covered. We could > do: > > test_lazy_prereq GREP_A ' > echo foo | grep -a foo > ' > > and mark these tests with it. I'd also be happy to skip that step and > just do it if and when somebody actually complains about a system > without it (I wouldn't be surprised if most people on antique systems > end up installing GNU grep anyway). > > Another option might be using "sed -ne '/^author/p'" or similar. But > that may very well just be trading one portability problem for another. Would $PERL help, I wonder?