Bug 591583 - weird bash behaviour in F13 with wildcards
weird bash behaviour in F13 with wildcards
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
13
All Linux
low Severity medium
: ---
: ---
Assigned To: Roman Rakus
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-12 11:49 EDT by Joachim Backes
Modified: 2014-01-12 19:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-05-12 11:57:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Joachim Backes 2010-05-12 11:49:33 EDT
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 11:57:57 EDT
Sorry, I forget to set LC_ALL=C in the environment. With this, "a z" is echoed as expected (thanks to Eric Blake).

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