Problem with Bash

Chris Delfs christopher.Delfs at anu.edu.au
Wed Dec 12 14:23:30 EST 2001


I feel stupid asking this but I can't see why bash (RH 7.2) is ignoring case 
in regular expressions.  For example

~/tmp 38>touch A B C D a b c d
~/tmp 39>ls
a  A  b  B  c  C  d  D
~/tmp 40>ls [a-z]*
a  A  b  B  c  C  d  D

The bash man page suggested nocaseglob might have been the culprit but it is 
turned off.
~/tmp 92>shopt -p
shopt -u cdable_vars
shopt -u cdspell
shopt -u checkhash
shopt -u checkwinsize
shopt -s cmdhist
shopt -u dotglob
shopt -u execfail
shopt -s expand_aliases
shopt -u extglob
shopt -u histreedit
shopt -u histappend
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -s interactive_comments
shopt -u lithist
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -u nocaseglob
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo
-- 
Chris Delfs				email delfs at rsc.anu.edu.au 
Research School of Chemistry		Tel   +(61)(2) 6125 3496
Australian National University		Fax   +(61)(2) 6125 0750
Canberra  ACT 0200 
Australia




More information about the linux mailing list