bug-bash
[Top][All Lists]
Advanced

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

Re: Curious case statement error


From: Chet Ramey
Subject: Re: Curious case statement error
Date: Tue, 16 Aug 2016 10:10:44 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/13/16 3:59 PM, Eduardo Bustamante wrote:
> Character ranges are locale-dependant. Check the values of LC_ALL and
> LC_COLLATE. Under some locales, the [A-Z] range is actually AaBb..Z. That's
> why it's better to use the character classes, i.e. [[:alpha:]],
> [[:lower:]], [[:upper:]], etc.

This is an old question.  So old, in fact, that question E9 in the Bash
FAQ covers it.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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