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 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