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

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

Re: grep


From: Andreas Schwab
Subject: Re: grep
Date: Mon, 13 Feb 2006 13:49:04 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Eugene <address@hidden> writes:

> Hi there!
>
> I installed grep-2.5.1-431.i586.rpm package on SuSE 9.1 platform and found 
> some strange behaviour:
>
>
> bash-2.05b$ echo "_8_5" | egrep -q '^(_([0-9]|2[0-5])){2}$' && echo true || 
> echo false 
> true
>
> bash-2.05b$ echo "_8_6" | egrep -q '^(_([0-9]|2[0-5])){2}$' && echo true || 
> echo false 
> false
>
> bash-2.05b$ echo "_8_6" | egrep -q '^(_(2[0-5]|[0-9])){2}$' && echo true || 
> echo false
> true
>
> bash-2.05b$ egrep --version
> egrep (GNU grep) 2.5.1
>
> Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
>
>
> It seems to me that the 2nd case is wrong.

See <http://thread.gmane.org/gmane.comp.gnu.grep.bugs/1051>.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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