bug-bash
[Top][All Lists]
Advanced

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

Re: strange problem with local bash build -> [a-z] matches A


From: Quentin Fennessy
Subject: Re: strange problem with local bash build -> [a-z] matches A
Date: Tue, 23 Jan 2001 10:26:18 -0600

Chet wrote> 

> It's your locale setting.  Range expressions in pattern matching use the
> current locale and its collating sequence.  See what $LANG, $LC_ALL,
> $LC_COLLATE, and $LC_CTYPE are set to.

Thanks, Chet. Very interesting. Turns out it was $LC_COLLATE that
made the difference.

> The common `en_US' locale setting collates alphabetics like

>       AaBbCc...Zz

> so [a-z] will match all of the lowercase letters and the uppercase
> letters between B and Z.

--
Quentin Fennessy                Quentin.Fennessy@amd.com        
                                Office: 512.602.3873
                                Cell:   512.694.7489




reply via email to

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