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

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

Re: Apparent bug in grep 2.5.1-31 from RHEL 3 and RHEL 4?


From: Hans-Bernhard Broeker
Subject: Re: Apparent bug in grep 2.5.1-31 from RHEL 3 and RHEL 4?
Date: 8 Oct 2006 13:19:55 GMT

Pedro Freire <address@hidden> wrote:

> The obvious command to show such lines would be something like:

>         egrep '^9([ -]?[0-9]){8}$' p.txt

Not really. That first '-' is in just the wrong place.

        egrep '^9([- ]?[0-9]){8}$' p.txt

works just fine here (GNU egrep 2.5.1 on Cygwin)

>         egrep '^9([a]?[0-9]){8}$' p.txt

> will retun the first and SECOND lines! AFAIK, there's no way this expression
> could match ten numeric digits!

Suffice it to say that on my box it doesn't.  So if there's a bug, my
guess is it must have been introduced somewhere between the GNU source
and your RHEL binaries.

-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.




reply via email to

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