Bug 761472 - Problems with bash globbing
Summary: Problems with bash globbing
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Roman Rakus
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-08 11:44 UTC by Gilles Berger Sabbatel
Modified: 2014-01-13 00:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-12 15:35:01 UTC
Type: ---


Attachments (Terms of Use)

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


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