Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: arrays and spaces in file names?



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