[gentoo-user] Bug in bash ?

2007-04-21 Thread alain . didierjean
Can somebody explain why ls [A-Z]* works as ls * (or ls -R): It seems that [A-Z] is ignored by bash-3.1.17 on amd64. The expression works as expected with zsh... -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] Bug in bash ?

2007-04-21 Thread Jan Seeger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is no bug. Bash globs everything that begins with A-Z (also directories) and then gives that list to ls. So ls lists all these files and the directories that begin with A-Z. Strangely though, bash seems to ignore case. (When I try your command,

Re: [gentoo-user] Bug in bash ?

2007-04-21 Thread Renat Golubchyk
On Sat, 21 Apr 2007 10:44:09 +0200 Jan Seeger [EMAIL PROTECTED] wrote: This is no bug. Bash globs everything that begins with A-Z (also directories) and then gives that list to ls. So ls lists all these files and the directories that begin with A-Z. Strangely though, bash seems to ignore case.

Re: [gentoo-user] Bug in bash ?

2007-04-21 Thread Bo Ørsted Andresen
On Saturday 21 April 2007 09:52:40 [EMAIL PROTECTED] wrote: Can somebody explain why ls [A-Z]* works as ls * (or ls -R): It seems that [A-Z] is ignored by bash-3.1.17 on amd64. The expression works as expected with zsh... Try `ls [[:upper:]]*`. Also -R is recursive. You should google that