filename pattern case-insensitive, but why?

2009-09-22 Thread thahn01
Hello, If I try something like: $ touch a.c b.c A.c $ ls [a-z]*.c a.c A.c b.c then I get A.c in the output, even if no capital letters are to be found. Looking thru the docs I have currently: $ shopt autocd off cdable_vars off cdspell off checkhash off checkjobs

Strange compgen behaviour

2009-09-22 Thread Mathias Dahl
Hi fellow bashers! I am trying to add some completion to a command. The completion should list all movies I have in a certain folder, regardless if I am in that folder or not. I have kind of got it to work in several variants but all have some issue. The current problem I am looking at is very str

Re: filename pattern case-insensitive, but why?

2009-09-22 Thread Mike Stroyan
On Tue, Sep 22, 2009 at 02:36:30AM -0700, thahn01 wrote: > > Hello, If I try something like: > > $ touch a.c b.c A.c > $ ls [a-z]*.c > a.c A.c b.c > > then I get A.c in the output, even if no capital letters are to be found. The "[a-z]" range expression matches characters between a and z in