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: tangke
Subject: Re: grep version 2.5.3 and 2.5.4 bug with case-insensitive (-i) matching POSIX pattern class [[:upper:]]
Date: Thu, 24 Sep 2009 13:03:40 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3

yes.me too
address@hidden:~$ echo "(A)" | grep -i "([[:upper:]])"
(A)

address@hidden:~$ grep --version
GNU grep 2.5.3

On 09/23/2009 04:05 PM, Dave B wrote:
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.


Attachment: tangk.vcf
Description: Vcard


reply via email to

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