bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-grep] patch #3477 overview: Tests for --only-matching


From: Charles Levert
Subject: Re: [bug-grep] patch #3477 overview: Tests for --only-matching
Date: Thu, 24 Feb 2005 00:48:55 -0500
User-agent: Mutt/1.4.1i

* On Wednesday 2005-02-23 at 18:44:20 +0000, Julian Foad wrote:
> Tony Abou-Assaleh wrote:
> >This test case requires the existence of Bash. Is that acceptable? Can't
> >we rewrite it to use only sh and awk?
> 
> Requiring Bash probably isn't acceptable.  I suppose I could learn enough 
> awk to do that, or I could make the subroutine into a separate program (a 
> separate shell script file).  I'll try to do one of those soon, but if 
> anybody else wants to help then please do.

I don't think this script has anything bash-specific in it.

I would probably just

  -- replace /bin/bash by /bin/sh

  -- replace ${GREP=...} by ${GREP:=...}

  -- remove OPTS=... and replace $OPTS by -o "$@" to keep
     the "$@" magic.

Here's another test:

  grep_o_test "word/" "wordword/" "\<word"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]