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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to