Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Filename Generation - *(.)
- X-seq: zsh-users 11932
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Filename Generation - *(.)
- Date: Fri, 5 Oct 2007 21:44:37 +1300 (NZDT)
- In-reply-to: <20071005084122.GA5535@xxxxxxxxxxxxxxx>
- 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: <20071005080339.19628.qmail@xxxxxxxxxxx> <20071005084122.GA5535@xxxxxxxxxxxxxxx>
On Fri, 5 Oct 2007, Stephane Chazelas wrote:
Would you have a file whose name starts with "-" in the current
directory and a GNU grep by any chance?
In any case, when passing /unknown/ arguments (practically, if you can't
make sure none of them may start with a - or +), you need to mark the
end of options:
grep foo -- *(.)
================
yep, i had a file named "-" in the directory. thanks.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"[Patriotism]... is a word which always
commemorates a robbery. There isn't a foot of
land in the world which doesn't represent the
ousting and re-ousting of a long line of
successive 'owners' who each in turn, as
'patriots' with proud swelling hearts
defended it against the next gang of 'robbers'
who came to steal it and did -- and became
swelling-hearted patriots in their turn."
- Mark Twain's Notebook
Messages sorted by:
Reverse Date,
Date,
Thread,
Author