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

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

Re: grep version 2.5.3 and 2.5.4 bug with case-insensitive (-i) matching


From: Dave B
Subject: Re: grep version 2.5.3 and 2.5.4 bug with case-insensitive (-i) matching POSIX pattern class [[:upper:]]
Date: Wed, 23 Sep 2009 09:05:28 +0100
User-agent: KMail/1.11.2 (Linux/2.6.28-15-generic; KDE/4.2.2; x86_64; ; )

On Wednesday 23 September 2009 02:48:15 Roman Revyakin wrote:

> There seems to be a bug in grep versions 2.5.3 and 2.5.4 executing
> this sample piece of code:
>
> echo "(A)" | grep -i "([[:upper:]])"
>
> produces no output. grep version 2.5.1 works fine though:
>
> echo "(A)" | grep -i "([[:upper:]])"
> (A)
>
> I compiled greps 2.5.3 and 2.5.1 on the Slackware 13 box from the
> archives taken from
>
> http://ftp.gnu.org/gnu/grep/
>
> The grep 2.5.4 was shipped with the Slackware 13 itself.

FWIW, works for me with grep 2.5.3:

$ echo "(A)" | grep -i "([[:upper:]])"
(A)
$ grep --version
GNU grep 2.5.3

Copyright (C) 1988, 1992-2002, 2004, 2005  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.

-- 
D.




reply via email to

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