From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29257 invoked from network); 25 May 2006 17:53:47 -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 17:53:47 -0000 Received: (qmail 6218 invoked from network); 25 May 2006 17:53:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 May 2006 17:53:39 -0000 Received: (qmail 20493 invoked by alias); 25 May 2006 17:53:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10308 Received: (qmail 20483 invoked from network); 25 May 2006 17:53:31 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 May 2006 17:53:31 -0000 Received: (qmail 5203 invoked from network); 25 May 2006 17:53:30 -0000 Received: from mx.freeshell.org (HELO sdf.lonestar.org) (192.94.73.18) by a.mx.sunsite.dk with SMTP; 25 May 2006 17:53:29 -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 k4PHrHfS006264; Thu, 25 May 2006 17:53:17 GMT Received: (from pda@localhost) by sdf.lonestar.org (8.13.5.20060308/8.12.8/Submit) id k4PHrHN7019720; Thu, 25 May 2006 17:53:17 GMT From: Paul Ackersviller Date: Thu, 25 May 2006 17:53:16 +0000 To: Marc Chantreux Cc: zsh-users@sunsite.dk Subject: Re: arrays and spaces in file names? Message-ID: <20060525175316.GA16158@sverige> Reply-To: Paul Ackersviller 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> <20060525165658.GA20662@sverige> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060525165658.GA20662@sverige> User-Agent: Mutt/1.4.2.1i On Thu, May 25, 2006 at 04:56:58PM +0000, Paul Ackersviller wrote: > 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 their names. Or more succinctly (I reply to myself): find . -type f -print works like **/*(.D)