Bug 761472

Summary: Problems with bash globbing
Product: [Fedora] Fedora Reporter: Gilles Berger Sabbatel <gilles.berger-sabbatel>
Component: bashAssignee: Roman Rakus <rrakus>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: maxamillion, rrakus, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-12 15:35:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gilles Berger Sabbatel 2011-12-08 11:44:37 UTC
Description of problem:
Bash globbing ignore case, and displays pattern in case of no match

Version-Release number of selected component (if applicable):
bash-4.2.10-5.fc16.x86_64
and bash-4.2.10-4.fc15.x86_64

How reproducible:

Steps to Reproduce:
1. mkdir X
2. cd X
3. touch A
4. echo [a-z]
5. echo [0-9]
  
Actual results:
4 display : A
5 display : [0-9]

Expected results:
4 No match found
5 No match found


Additional info:

nocaseglob is off

Comment 1 Roman Rakus 2011-12-12 15:35:01 UTC
Please read bash's FAQ http://www.faqs.org/faqs/unix-faq/shell/bash/ part E9.

Comment 2 Gilles Berger Sabbatel 2011-12-13 07:31:28 UTC
OK.  So, bash is deliberately broken, but we should consider it as a feature.
For scripts, I will use the following workaround :
#!/bin/zsh