Hide Forgot
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
Please read bash's FAQ http://www.faqs.org/faqs/unix-faq/shell/bash/ part E9.
OK. So, bash is deliberately broken, but we should consider it as a feature. For scripts, I will use the following workaround : #!/bin/zsh