Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unexpected wildcard issue
- X-seq: zsh-users 11242
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: unexpected wildcard issue
- Date: Thu, 8 Mar 2007 00:12:44 -0500 (EST)
- In-reply-to: <20070308045433.GQ86959@xxxxxxxxxxxxxxxx>
- 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
- References: <20070308045130.66826.qmail@xxxxxxxxxxx> <20070308045433.GQ86959@xxxxxxxxxxxxxxxx>
On Wed, 7 Mar 2007, Dan Nelson wrote:
Doesn't matter. Even if quoted, ls would still see as its first
argument something starting with a dash, which it will interpret as an
option. Use "ls -- *xyz" or "ls ./*xyz" to ensure that none of the
expanded filenames get mistaken for options.
==================
ok... so, should the shell insert an implied "--" before expanding
wildcards or globs? is there an option for that? should there be?
thanks...
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"When one tries to rise above Nature one is
liable to fall below it."
-- Sherlock Holmes (Arthur Conan Doyle)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author