From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11418 invoked from network); 12 Jun 2004 13:03:56 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 12 Jun 2004 13:03:56 -0000 Received: (qmail 17297 invoked from network); 12 Jun 2004 13:03:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jun 2004 13:03:20 -0000 Received: (qmail 1672 invoked by alias); 12 Jun 2004 13:02:59 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7527 Received: (qmail 1662 invoked from network); 12 Jun 2004 13:02:58 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 12 Jun 2004 13:02:55 -0000 Received: (qmail 16536 invoked from network); 12 Jun 2004 13:02:55 -0000 Received: from erouter1.it-datacntr.louisville.edu (136.165.5.195) by a.mx.sunsite.dk with SMTP; 12 Jun 2004 13:02:53 -0000 Received: from savgw-out.louisville.edu (savgw-out.louisville.edu [136.165.2.38]) by erouter1.it-datacntr.louisville.edu (Postfix) with SMTP id 9EB911387 for ; Sat, 12 Jun 2004 09:02:52 -0400 (EDT) Received: from netmail.louisville.edu ([136.165.5.76]) by savgw-out.louisville.edu (SAVSMTP 3.1.5.43) with SMTP id M2004061208592209097 for ; Sat, 12 Jun 2004 08:59:22 -0400 Received: from louisville.edu agdavi01@netmail.louisville.edu [12.220.223.80] by netmail.louisville.edu with NetMail SMTP Agent $Revision: 3.22.1.5 $ on Linux via secured & encrypted transport (TLS); Sat, 12 Jun 2004 01:44:29 -0400 Date: Sat, 12 Jun 2004 01:43:32 -0400 Subject: Re: *(@)/subdir expansion Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v553) From: Aaron Davies To: zsh-users@sunsite.dk Content-Transfer-Encoding: quoted-printable In-Reply-To: <20040608083135.GA14991@picard.franken.de> Message-Id: <70B2ED44-BC33-11D8-B393-000502631FBD@louisville.edu> X-Mailer: Apple Mail (2.553) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=1.0 required=6.0 tests=BAYES_44,FROM_ENDS_IN_NUMS autolearn=no version=2.63 X-Spam-Hits: 1.0 Thomas K=F6hler wrote: > Andy Isaacson wrote: > >> I'm suprised to find that this expansion doesn't work for me: >> >> % ls *(@)/dry >> zsh: no matches found: *(@)/dry >> >> Am I doing something wrong, is this expected behavior, or is it a = bug? > > You might want to try something like > > for i in *(@) ; do ls $i/dry 2>/dev/null ; done Really, the correct general solution to this is to fall back on the=20 tool that zsh's extended glob attempts to make obsolete: GNU find.=20 Despite its arcane and annoying syntax, it's still occasionally useful.=20= In this case, you want to say find *(@) -name dry -exec ls '{}' ';' --=20 __ __ / ) / ) /--/ __. .__ ______ / / __. , __o _ _ / (_(_/|_/ (_(_) / (_ (__/_(_/|_\/ <__