Bug 182497 - bash globbing bug in ranges (e.g. [a-z])
Summary: bash globbing bug in ranges (e.g. [a-z])
Keywords:
Status: CLOSED DUPLICATE of bug 77349
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 4
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-22 21:38 UTC by dan
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-22 23:01:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.