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

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

Re: Case insensitivity seems to ignore lower bound of interval


From: Davide Brini
Subject: Re: Case insensitivity seems to ignore lower bound of interval
Date: Thu, 28 Apr 2011 11:59:24 +0100
User-agent:

On Thu, 28 Apr 2011 11:43:52 +0100 Davide Brini <address@hidden> wrote:

> > $ echo 'ijklmnopqr'| grep "[r-z]"
> > ijklmnopqr
> > $ echo 'ijklmnopqr'| grep "[R-Z]"
> 
> This is expected, since "[R-Z]" does NOT match "r" in the locales under
> discussion. But nonetheless, you are right that grep seems to behave
> differently, although I was almost sure I had seen it show the same
> behavior at some point; I may be misremembering.

It looks like 2.5.4 was doing it, but not 2.7, so something probably
changed in between:

$ echo 'ijklmnopqrstuvwxyz' | \grep '[R-Z]'
ijklmnopqrstuvwxyz

(the above using 2.5.4)

-- 
D.



reply via email to

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