Red Hat Bugzilla – Bug 67106
file list expansions using [M-N] ranges produces wrong results
Last modified: 2008-05-01 11:38:02 EDT
Description of Problem:
"ls [M-N]" should list only file "M" and "N" if they exist, not "m" or "n"
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. touch m M n
2. ls [M-N]
Problem does not exist in bash-2.05a-13 from Redhat-7.3
This is the correct result.
Bash is i18n aware these days.
If you don't like it, use LC_COLLATE=C
I think that LC_COLLATE=C should be the default so that the behavior of
shell scripts and Makefiles don't suddenly change.
LC_COLLATE=C does restore reasonable behavior, but
I can't see the logic of the new changed collate sequence. It still looks like
a bug to me.
In the example:
touch m M n
why is "M" listed but not "m"