bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep 2.5.1: two errors in 'make check'


From: Patrick Smith
Subject: Re: grep 2.5.1: two errors in 'make check'
Date: Mon, 03 Feb 2003 16:23:54 -0500
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.2.1) Gecko/20030113

Stepan Kasal wrote:
        echo - | grep -E -e '(*)b'

This is a change in the way regex interprets this illegal pattern.
New regex correctly reports the error:

Perhaps the test case should be changed to accept either 1 or 2 as the exit code?

        echo civic | grep -E -e \
           '^(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?).?\9\8\7\6\5\4\3\2\1$'

expecting exit code 0.  Instead, the exit code is 1, with no output.

This seems to be a bug in current regex code.

Do the glibc folks know about this?  Or should I report it to them?


To hide the first problem and solve the second one, ./configure grep
--with-included-regex .

Thanks.  I'll do this.





reply via email to

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