[Top][All Lists]

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

Re: range match works incorrect

From: Matthew Woehlke
Subject: Re: range match works incorrect
Date: Thu, 05 Jun 2008 11:10:29 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20080501 Fedora/ Thunderbird/ Mnenhy/

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'.

Somewhere there is a pun so egregious that uttering it will incite murderous rage in all who hear it. If anyone knows where it is, please let me know.

reply via email to

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