git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] tests: grep portability fixes

From
Jeff King <peff@peff.net>
Date
Sep 30, 2008, 12:44 UTC
Message-ID
<20080930124413.GA22078@coredump.intra.peff.net>
In-Reply-To
<e2b179460809300410q47592f63y7f7ec626007ad838@mail.gmail.com>
On Tue, Sep 30, 2008 at 12:10:19PM +0100, Mike Ralphson wrote:
Show 10 quoted lines
> > There is one exception for "-e" here, which is in t7701 used
> > to produce an "or" of patterns. This can be rewritten as an
> > egrep pattern.
> >
> > This patch also removes use of "grep -F" in favor of the
> > more widely available "fgrep".
> 
> Works here too (AIX 5.3)
> 
> Tested-by: Mike Ralphson <mike@abacus.co.uk>

Thanks Mike and Johannes. The dropping of "-e" and "-q" we had done before, but this was our first use of egrep and fgrep. From my (admittedly limited) knowledge, I think they are fine, but it is nice to have some confirmation.

-Peff
Previous: Mike Ralphson
Message 7 of 7 in “tests: grep portability fixes”
  1. tests: grep portability fixesJeff King, Sep 30, 2008
  2. Andreas EricssonSep 30, 2008
  3. Johannes SixtSep 30, 2008
  4. Jeff KingSep 30, 2008
  5. Johannes SixtSep 30, 2008
  6. Mike RalphsonSep 30, 2008
  7. Jeff KingSep 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.