bug-grep
[Top][All Lists]
Advanced

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

Re: have you ever mistyped [[:lower:]] as [:lower:] ?


From: Eric Blake
Subject: Re: have you ever mistyped [[:lower:]] as [:lower:] ?
Date: Wed, 01 Sep 2010 09:45:56 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 09/01/2010 08:25 AM, Eric Blake wrote:
Personally, I'd _like_ to try to get POSIX to allow unspecified behavior
for a bracket expression that starts and ends with colon, at which
point, we could then drop the POSIXLY_CORRECT notion, and blindly reject
[:upper:]. In fact, I'm going to go create that aardvark today (link to
follow soon...)

In fact, one could argue that since current POSIX appears to be silent on behavior for duplicate listing of the same collating element within a single bracket expression, that grep.git's behavior of erroring out on '[:alpha:]' need not depend on POSIXLY_CORRECT in the first place. But by that same argument, grep could error out on '[aa]', which is not very desirable.

At any rate, here's the bug report - now to see how the Austin Group reacts:
http://austingroupbugs.net/view.php?id=305

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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