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