Bug 591583 - weird bash behaviour in F13 with wildcards
weird bash behaviour in F13 with wildcards
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Roman Rakus
Fedora Extras Quality Assurance
Depends On:
  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:
Last Closed: 2010-05-12 11:57:57 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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):

How reproducible:

Steps to Reproduce:
1.mkdir x;cd x;touch a B z
2.echo [a-z]
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.