bug-bash
[Top][All Lists]
Advanced

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

Re: Pattern matching only sometimes case-(in)sensitive in character clas


From: Chet Ramey
Subject: Re: Pattern matching only sometimes case-(in)sensitive in character classes
Date: Mon, 18 Mar 2002 17:30:40 -0500

> Machine Type: i386-pc-linux-gnu
> 
> Bash Version: 2.05a
> Patch Level: 0
> Release Status: release
> 
> Description:
>       Pattern matching is only sometimes case-(in)sensitive in character 
> classes.
> 
>       (Which should it be?  The documentation - "any character that sorts 
> between
>       those two characters ['a' and 'b' for '[a-b]'], inclusive, using the 
> current
>       locale's collating sequence and character set, is matched." - is 
> somewhat
>       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/



reply via email to

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