[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep
From: |
Stepan Kasal |
Subject: |
Re: grep |
Date: |
Tue, 28 Dec 2004 16:53:06 +0100 |
User-agent: |
Mutt/1.4.1i |
Hello,
thank you for your bug report.
A side note: the grep bug-address has changed to address@hidden,
so please move the discussion (if any) there. (Reply-To field set.)
On Tue, Dec 28, 2004 at 01:10:21PM +0100, address@hidden wrote:
> I've something weird with grep test suite.
in short, the test suite is in a bad shape.
But the grep program itself should work correctly.
In detail:
> Spencer test #55 fails (exit code is 2 instead of 1)
Correct result would be exit code 2, but the test suite requires 1.
> I thought it was an error in the test, but I tried it under cygwin:
> grep version: 2.5
> Spencer test #55 passes (exit code is 1, as expected)
The problem is that the regex code distributed with grep has a bug
which matches the bug in the test. So when you use the included regex,
the bug is hidden.
On GNU/Linux, you use the system regex, which works correctly, and the
bug in the test demonstrates itself.
> PS: there's a test running from some 20 minutes from backref.sh...
This regex is extremelly slow when run with the system regex on GNU/Linux
systems.
Both problems are addressed in the CVS on savannah.gnu.org.
Regards,
Stepan Kasal
- grep, W. B. Maguire II, 2004/12/08
- grep, flavio, 2004/12/28
- Re: grep,
Stepan Kasal <=