Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
unexpected wildcard issue
- X-seq: zsh-users 11240
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: unexpected wildcard issue
- Date: Wed, 7 Mar 2007 23:51:32 -0500 (EST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
### create some "xyz" file
$ touch {1..10}.xyz
### check that they're there, using a wildcard
$ ls *xyz
0.xyz 1.xyz 10.xyz 2.xyz 3.xyz 4.xyz 5.xyz 6.xyz 7.xyz
8.xyz 9.xyz
### create another file with a leading dash in the filename
$ touch ./-11.xyz
### check again, with a wildcard
$ ls *xyz
ls: illegal option -- .
usage: ls [-ABCFGHILPRSTWZabcdfghiklmnopqrstuwx1] [file ...]
:::::::::::
should the shell protect expanded file names, as if they were entered in
quotes?
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"It has become appallingly obvious that our
technology has exceeded our humanity."
-- Albert Einstein
Messages sorted by:
Reverse Date,
Date,
Thread,
Author