[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pattern matching only sometimes case-(in)sensitive in character clas
Re: Pattern matching only sometimes case-(in)sensitive in character classes
Mon, 18 Mar 2002 17:30:40 -0500
> Machine Type: i386-pc-linux-gnu
> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
> Pattern matching is only sometimes case-(in)sensitive in character
> (Which should it be? The documentation - "any character that sorts
> those two characters ['a' and 'b' for '[a-b]'], inclusive, using the
> locale's collating sequence and character set, is matched." - is
> difficult to understand.)
> For example, [a-b] will not match B, but [b-c] will.
Look at item 13 in COMPAT and E9 in the FAQ.
Your locale probably sorts `aAbBcC...zZ'.
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/