Bug 591583

Summary: weird bash behaviour in F13 with wildcards
Product: [Fedora] Fedora Reporter: Joachim Backes <joachim.backes>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: rrakus, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-12 15:57:57 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 Joachim Backes 2010-05-12 15:49:33 UTC
Description of problem:
the F13 bash seems to behave incorrect:

If you have only the files a,B and z in some directory (not more), then 
the command "echo [a-z]" only should echo the text "a z"
But the bash in F13 echoes the text: "a B z".

Can this behavior depend on environment variables?

Version-Release number of selected component (if applicable):
bash-4.1.2-4.fc13.i686

How reproducible:
Always

Steps to Reproduce:
1.mkdir x;cd x;touch a B z
2.echo [a-z]
3
  
Actual results:
a B z
Expected results:
a z

Additional info:
1. Usage of zsh instead echoes "a z" (as expected).
2. Weird: Downloading bash-3.2.tar.gz from gnu.org and installing this bash
   shows the same wrong behaviour.
3. Using zsh instead of bash in F13 echoes "a z" and not "a B z". That is 
   correct too.
4. I checked this in earlier Fedoras, there the behaviour is correct (as 
   described: echoes "a z").

Comment 1 Joachim Backes 2010-05-12 15:57:57 UTC
Sorry, I forget to set LC_ALL=C in the environment. With this, "a z" is echoed as expected (thanks to Eric Blake).