[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: generated tests/*.at in cvs?
From: |
Ralf Wildenhues |
Subject: |
Re: generated tests/*.at in cvs? |
Date: |
Tue, 4 Apr 2006 17:32:40 +0200 |
User-agent: |
Mutt/1.5.11 |
[ let's remove bug-autoconf ]
* Stepan Kasal wrote on Tue, Apr 04, 2006 at 03:46:00PM CEST:
> On Sun, Apr 02, 2006 at 09:11:25PM +0200, Ralf Wildenhues wrote:
> > If the change should remain, [...] fix mktests.sh [...]
> I can see several ways to fix it:
>
> 1) Use egrep -f
> 2) Use -f or multiline patterns, whichever is supported.
> 3) Most of the script can be replaced with one call to awk,
> with a long parameter list.
>
> Discussion:
> ad 1) and 2)
> Which platforms have grep which doesn't support -f?
On Solaris 2.6, /usr/xpg4/bin/grep supports both -f and patterns
separated by newlines on the command line (and also -E and -F).
/usr/bin/grep supports none of those. /usr/bin/egrep supports -f, and
patterns separated by newlines on the command line. Same business on
Solaris 10, AFAICS.
OpenBSD 3.8 grep supports -f but not patterns separated by newlines on
the command line.
So it seems to me that `$egrep -f' has a good chance of success, as
it seems to work on all systems I looked at.
> ad 2) I think the most convenient way would be to use a shell function.
Well, if you go just for -f, there is no need for a function, no?
Cheers,
Ralf
- Re: generated tests/*.at in cvs?, Stepan Kasal, 2006/04/01
- Re: generated tests/*.at in cvs?, Ralf Wildenhues, 2006/04/02
- Re: generated tests/*.at in cvs?, Paul Eggert, 2006/04/02
- Re: generated tests/*.at in cvs?, Ralf Wildenhues, 2006/04/02
- Re: generated tests/*.at in cvs?, Stepan Kasal, 2006/04/04
- Re: generated tests/*.at in cvs?,
Ralf Wildenhues <=
- Re: generated tests/*.at in cvs?, Stepan Kasal, 2006/04/04
- Re: generated tests/*.at in cvs?, Ralf Wildenhues, 2006/04/04
- Re: generated tests/*.at in cvs?, Paul Eggert, 2006/04/04
- Re: generated tests/*.at in cvs?, Ralf Wildenhues, 2006/04/06
- Re: generated tests/*.at in cvs?, Stepan Kasal, 2006/04/06
- Re: generated tests/*.at in cvs?, Paul Eggert, 2006/04/09
- Re: generated tests/*.at in cvs?, Paul Eggert, 2006/04/04