bug-grep
[Top][All Lists]
Advanced

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

[bug-grep] Re: grep


From: flavio
Subject: [bug-grep] Re: grep
Date: Tue, 28 Dec 2004 18:03:39 +0100 (CET)
User-agent: SquirrelMail/1.4.2

Hello,

   thank you for your quick answer, just a few additional notes that I
hope will be useful for you.

The Bond test in backref.sh did not work in my brand new build (I had to
kill it), while it completed in a few milliseconds with the Slackware and
Cygwin builds. I tried to re-configure and re-make:

   ./configure --prefix=/usr --bindir=/bin --with-included-regex

and all the tests were good.

Now my problem is simple: should I keep this fresh build with the included
(but bugged, according to you) code, or should I stick to the system regex
code? I'm scared thinking that the Bond test didn't even exit, and this
could happen in future too, and having a return value of 1 instead of 2
scares me less at the moment :S

I'm also wondering why my Slackware grep did work on the Bond test given
that it should use the system library, but this surely is some difference
in library versions.

Thank you again,

   Flavio Poletti.

> 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
>





reply via email to

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