bug-bash
[Top][All Lists]
Advanced

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

Re: locale specific ordering in EN_US -- why is a<A<b<B<y<Y<z<Z?


From: Pádraig Brady
Subject: Re: locale specific ordering in EN_US -- why is a<A<b<B<y<Y<z<Z?
Date: Wed, 26 Jun 2013 15:15:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 5/21/12 3:42 PM, Chet Ramey wrote:
> On 5/21/12 3:27 PM, Aharon Robbins wrote:
> > This is why I started the Campaign For Rational Range Interpretation,
> > now part of gawk and I believe in the most recent grep also, which
> > returns us to the sane days of yesteryear, where [a-z] got only lowercase
> > letters and [A-Z] got only uppercase ones.
>
> The next version of bash will have a shell option to enable this behavior.
> It's in the development snapshots if anyone wants to try it out now.

So what about setting globasciiranges on by default?
There is a backwards compat issue, but it's probably
less of a problem than having inconsistent handling
of these ranges between different systems, and different
tools like grep, gawk, sed, etc...
To me it seems best to at least be consistent with
each other, and with the intent of POSIX >= 2001.

thanks,
Pádraig.



reply via email to

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