From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9930 invoked from network); 25 May 2006 16:57:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 May 2006 16:57:30 -0000 Received: (qmail 54293 invoked from network); 25 May 2006 16:57:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 May 2006 16:57:22 -0000 Received: (qmail 10870 invoked by alias); 25 May 2006 16:57:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10307 Received: (qmail 10860 invoked from network); 25 May 2006 16:57:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 May 2006 16:57:12 -0000 Received: (qmail 53218 invoked from network); 25 May 2006 16:57:12 -0000 Received: from mx.freeshell.org (HELO sdf.lonestar.org) (192.94.73.18) by a.mx.sunsite.dk with SMTP; 25 May 2006 16:57:11 -0000 Received: from sdf.lonestar.org (IDENT:pda@sverige.freeshell.org [192.94.73.4]) by sdf.lonestar.org (8.13.5.20060308/8.12.10) with ESMTP id k4PGuwv2019083; Thu, 25 May 2006 16:56:58 GMT Received: (from pda@localhost) by sdf.lonestar.org (8.13.5.20060308/8.12.8/Submit) id k4PGuw6t014311; Thu, 25 May 2006 16:56:58 GMT From: Paul Ackersviller Date: Thu, 25 May 2006 16:56:58 +0000 To: Marc Chantreux Cc: zsh-users@sunsite.dk Subject: Re: arrays and spaces in file names? Message-ID: <20060525165658.GA20662@sverige> Mail-Followup-To: pda, Marc Chantreux , zsh-users@sunsite.dk References: <4474BD59.9030508@gmail.com> <237967ef0605250805w4a39eab5mcb1fcc4757d85465@mail.gmail.com> <4475C8F1.6020904@ulpmm.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4475C8F1.6020904@ulpmm.u-strasbg.fr> User-Agent: Mutt/1.4.2.1i On Thu, May 25, 2006 at 05:10:41PM +0200, Marc Chantreux wrote: > Mikael Magnusson a ??crit : > > > > >Try this, > >for i in **/*(.); do foo; bar; done > > not really : > > find . -print works like **/* > find . -type f -print works like **/*(.) You'll also need to setopt GLOB_DOTS, aka DOT_GLOB, to match what find will give you, i.e. include files with . on the front of theire names.