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.