From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14526 invoked from network); 18 May 2009 09:37:24 -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 09:37:24 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 21610 invoked from network); 18 May 2009 09:37:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 May 2009 09:37:11 -0000 Received: (qmail 23475 invoked by alias); 18 May 2009 09:36:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14133 Received: (qmail 23454 invoked from network); 18 May 2009 09:36:33 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 18 May 2009 09:36:33 -0000 Received: from mail-bw0-f170.google.com (mail-bw0-f170.google.com [209.85.218.170]) by bifrost.dotsrc.org (Postfix) with ESMTP id 660C18027106 for ; Mon, 18 May 2009 11:36:19 +0200 (CEST) Received: by bwz18 with SMTP id 18so2993600bwz.45 for ; Mon, 18 May 2009 02:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2oBLqn9xLG1w+1u7fcgT/BpnPj10VZ6iClwAA6W9vXY=; b=R0PmzsZ2f/XNkocXjZMupNOCndNVm0siPEFSHMuTCZ0Q9+ZBNdBFRSqFaqSs9j7V4a iCNWBhOZ80bMm4dBj8EQAE48PZVKjpaGE96YQtfobT4znYDZFM0L3W6gJLiAHdk5U+jc z5QxweduB5SQgVji9dFNK9MNlDiSCkKhU11RY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=IZy1OJUAv9/KLr/MZ2Cu7HrJsh00wfSUUWWux7H/+OP7nhRdh4kLE9BIpMbnW7nCSF RwwhIeMxG9E4aJLqfRAsO/cAPv7o2CW+m7cayD0vTQFgXTxtiZ4jS3sBoDQx17C7+aar 6Ou4tsGD8BORThBBP2lWvqH5eRXA5NnBThFuA= MIME-Version: 1.0 Received: by 10.239.154.83 with SMTP id d19mr464959hbc.33.1242639378782; Mon, 18 May 2009 02:36:18 -0700 (PDT) In-Reply-To: <20090518091455.83279.qmail@smasher.org> References: <20090518091455.83279.qmail@smasher.org> Date: Mon, 18 May 2009 05:36:18 -0400 Message-ID: <17393e3e0905180236v424b14d5ua9d364501662c75a@mail.gmail.com> Subject: Re: [[ -f file* ]] From: Matt Wozniski To: zsh-users@sunsite.dk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.94.2/9366/Mon May 18 08:02:23 2009 on bifrost X-Virus-Status: Clean On Mon, May 18, 2009 at 5:14 AM, Atom Smasher wrote: > if i want to test for the presence of one or more files matching a certain > pattern, it seems non-trivial to do it with the normal "test" or conditional > expressions. ... > is there a better way? 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. ~Matt