[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls Pattern Match Problem
From: |
Bob Proulx |
Subject: |
Re: ls Pattern Match Problem |
Date: |
Wed, 15 Jun 2005 11:30:30 -0600 |
User-agent: |
Mutt/1.5.9i |
Gutierrez, Carlos Y. wrote:
> Using RHL Fedora Core 3, 2.6.11 kernel:
>
> ls [a-z]* returns entries that begin with upper-case letters
This is almost certainly due use of a non-standard locale. For
example in the en_US locale setting (e.g. LANG=en_US) the collating
sequence of letters is aAbBcC...zZ and [a-z] matches [a-zA-X] in the C
or POSIX locale.
Try this:
env LANG=C ls
env LC_COLLATE=C ls
See this reference:
http://www.gnu.org/software/coreutils/faq/
Look for "Sort does not sort in normal order!"
Bob