[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep 2.5 test failures on HP-UX 11.00
From: |
Newton, Philip |
Subject: |
Re: grep 2.5 test failures on HP-UX 11.00 |
Date: |
Wed, 8 Jan 2003 14:52:20 +0100 |
Alfred M. Szmidt wrote:
>
> address@hidden@pne /tk/users/pne/tmp/install/grep-2.5 > \
> > echo '{' | { src/grep -e '\{' > /dev/null 2>&1; echo $? ; }
> 2
>
> Interesting, yesterday I could have sworn that I got an exit status of
> zero. Anyway, the error is obvious. The testcase should look like
> this:
>
> echo '{' | { src/grep -e '{' > /dev/null 2>&1; echo $? ; }
>
> Note the deleted "\"! This should work like expected (I hope).
Probably. But I think the test was supposed to test exactly that. I vaguely
recalled seeing something about "\{" in the docs somewhere. I think it was
probably this bit from ChangeLog:
<quote>
1999-10-02 Paul Eggert
[snip]
* tests/bre.tests: grep '\{' is no longer an error.
Fix test for interval too large, and enable it.
* tests/ere.tests: grep -E {1 is no longer an error
Likewise for a{1, a{1a, a{1a}, a{1,x}.
</quote>
> Yet they succeed (or does the script stop at the first error?). At
> any rate, that's the only test that gives me error output.
>
> AFAIK the script stops running after the first encountered failure.
That doesn't seem likely to me; the execution seems unconditional to me.
Cheers,
Philip
--
Philip Newton <address@hidden>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.