Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: arrays and spaces in file names?
- X-seq: zsh-users 10307
- From: Paul Ackersviller <pda@xxxxxxxxxxxxxxxx>
- To: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- Subject: Re: arrays and spaces in file names?
- Date: Thu, 25 May 2006 16:56:58 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <4475C8F1.6020904@xxxxxxxxxxxxxxxxxx>
- 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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author