Problem with Bash

Bob Edwards Robert.Edwards at anu.edu.au
Wed Dec 12 23:40:01 EST 2001


Chris Delfs wrote:
> 
> 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
> 

Change the value of your LANG environment variable from "en_US" to "C".

Cheers,

Bob Edwards.




More information about the linux mailing list