Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: arrays and spaces in file names?
- X-seq: zsh-users 10308
- From: Paul Ackersviller <pda@xxxxxxxxxxxxxxxx>
- To: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- Subject: Re: arrays and spaces in file names?
- Date: Thu, 25 May 2006 17:53:16 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20060525165658.GA20662@sverige>
- Mail-followup-to: pda, Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4474BD59.9030508@xxxxxxxxx> <237967ef0605250805w4a39eab5mcb1fcc4757d85465@xxxxxxxxxxxxxx> <4475C8F1.6020904@xxxxxxxxxxxxxxxxxx> <20060525165658.GA20662@sverige>
- Reply-to: Paul Ackersviller <paulda@xxxxxxxxxxxxx>
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)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author