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
-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,
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.
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
4 matches
Mail list logo