bug-bash
[Top][All Lists]
Advanced

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

Re: Subject: inaccurate character class processing


From: Greg Wooledge
Subject: Re: Subject: inaccurate character class processing
Date: Tue, 8 Jun 2010 10:47:35 -0400
User-agent: Mutt/1.4.2.3i

On Tue, Jun 08, 2010 at 04:25:53PM +0200, Roman Rakus wrote:
> In your locales lower letters are before capital letters, therefore 
> [a-z] does not include capital.

That's unlikely.  More often, they're mixed together (AaÁáäBb....).

> In C locales the sequence is capital letters and then lower letters (A B 
> Z a b z).

Correct.

> If you want all letters, lowers and capitals, you can use [a-zA-z]

No, you must use [[:alpha:]].  You're trying to second guess the order
of every non-C locale on every system, and that's a recipe for disaster.

(I had totally forgotten about [[:upper:]] in my previous reponse in
this thread.  That would be another solution: ls [[:upper:]]* .)



reply via email to

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