Bug 182497

Summary: bash globbing bug in ranges (e.g. [a-z])
Product: [Fedora] Fedora Reporter: dan <dan>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-22 23:01:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dan 2006-02-22 21:38:48 UTC
Description of problem:
In bash, ranges such as [a-z] do not work correctly:

Example:

$ls
a A b B c C d D e E f F

$ls [abc]*
a b c

$ls [a-c]*
a A b B c

 - note: both capitals and lower case show up, except the final capital in the
range (no file "C").

Version-Release number of selected component (if applicable):
3.0

How reproducible: always


Steps to Reproduce: follow example above
1.
2.
3.
  
Actual results: see above


Expected results: 
$ls [a-c]*
a b c

$ls [A-C]*
A B C


Additional info:

Comment 1 Tim Waugh 2006-02-22 23:01:25 UTC
You need to set 'LC_COLLATE=C' in the environment if that's the behaviour you
need.  Closing as a duplicate of, for exampe, bug #77349 (but there are many
other examples).

*** This bug has been marked as a duplicate of 77349 ***