[Top][All Lists]

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

Re: range match works incorrect

From: Roman Rakus
Subject: Re: range match works incorrect
Date: Thu, 05 Jun 2008 18:23:07 +0200
User-agent: Thunderbird (X11/20080501)

Matthew Woehlke wrote:
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'.

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.
This is really not good behavior of bash.

Attachment: rrakus.vcf
Description: Vcard

reply via email to

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