|
From: | Roman Rakus |
Subject: | Re: range match works incorrect |
Date: | Thu, 05 Jun 2008 18:23:07 +0200 |
User-agent: | Thunderbird 2.0.0.14 (X11/20080501) |
Matthew Woehlke wrote:
I think in range [a-d] shouldn't be any upper char. These are 2 different things. Collate orders and range match. Try to use glob and you will see difference.Roman Rakus wrote:When trying to match files [a-z] bash find files A-Z, depending on LC_COLLATE. The mistake is in usage of strcoll()/wcscoll(). It has nothing to do with ranges. Instead should be used fnmatch(). I can try to change this behavior. Or is this planned/done for next bash release?How is that incorrect? Depending on LC_COLLATE, the range '[a-d]' might mean 'abcd', 'aAbBcCd', 'aAàÀáÁâÂãÃäÄåÅæÆbBcCçÇd', etc.If you want C semantics, use 'LC_COLLATE=C'.
This is really not good behavior of bash.
rrakus.vcf
Description: Vcard
[Prev in Thread] | Current Thread | [Next in Thread] |