From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12312 invoked from network); 18 May 2009 11:36:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 18 May 2009 11:36:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 59429 invoked from network); 18 May 2009 11:36:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 May 2009 11:36:09 -0000 Received: (qmail 17595 invoked by alias); 18 May 2009 11:35:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14136 Received: (qmail 17584 invoked from network); 18 May 2009 11:35:43 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 May 2009 11:35:43 -0000 Received: from atom.smasher.org (atom.smasher.org [69.55.237.145]) by bifrost.dotsrc.org (Postfix) with SMTP id EF5298027106 for ; Mon, 18 May 2009 13:35:39 +0200 (CEST) Received: (qmail 18886 invoked by uid 1000); 18 May 2009 11:35:39 -0000 Message-ID: <20090518113539.18875.qmail@smasher.org> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Mon, 18 May 2009 23:35:37 +1200 (NZST) From: Atom Smasher In-Reply-To: <17393e3e0905180236v424b14d5ua9d364501662c75a@mail.gmail.com> MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt References: <20090518091455.83279.qmail@smasher.org> <17393e3e0905180236v424b14d5ua9d364501662c75a@mail.gmail.com> Subject: Re: [[ -f file* ]] To: zsh-users@sunsite.dk X-POM: The Moon is Waning Crescent (39% of Full) X-Hashcash: 1:20:0905181135:zsh-users@sunsite.dk::GC0DWUoLVXiOhw/k:0000000000000 0000000000000000000000002U4T X-Virus-Scanned: ClamAV 0.94.2/9366/Mon May 18 08:02:23 2009 on bifrost X-Virus-Status: Clean 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