Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [[ -f file* ]]
- X-seq: zsh-users 14136
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: [[ -f file* ]]
- Date: Mon, 18 May 2009 23:35:37 +1200 (NZST)
- In-reply-to: <17393e3e0905180236v424b14d5ua9d364501662c75a@xxxxxxxxxxxxxx>
- 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: <20090518091455.83279.qmail@xxxxxxxxxxx> <17393e3e0905180236v424b14d5ua9d364501662c75a@xxxxxxxxxxxxxx>
On Mon, 18 May 2009, Matt Wozniski wrote:
Well, off the top of my head, I can think of
[ -n "$(print -- test*(N))" ]
but even that seems inelegant; I'm sure someone can chime in with
something better.
=================
it's less inelegant than my original method ;)
and it works fine with '[[' conditional expressions... which, IIUC, is the
"new and improved" version of test.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"In every respect, vegans appear to enjoy equal
or better health in comparison to both vegetarians
and non-vegetarians."
-- T. Colin Campbell,
PhD Professor of Nutrition, Cornell University
Messages sorted by:
Reverse Date,
Date,
Thread,
Author