Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: arrays and spaces in file names?
- X-seq: zsh-users 10304
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: arrays and spaces in file names?
- Date: Thu, 25 May 2006 17:05:17 +0200
- Cc: reckoner <sam.reckoner@xxxxxxxxx>
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=us9s/DosHB9TgazasnLBRpurMx94pZMcgvYCZFUtQNFVhaQPkPO4MWFGYfUac5L+qtkE2Ge4b134ufpMjfpfcVf8NUxFR6GP+X1n2sZYauagxhScE98rl883ywvB9J003qsjjPnXwEKbjWydPDk619T/h+2PZtJQv7O5fBRPE6s=
- In-reply-to: <4474BD59.9030508@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4474BD59.9030508@xxxxxxxxx>
On 5/24/06, reckoner <sam.reckoner@xxxxxxxxx> wrote:
I want to do something like
% names=(`find . -print`)
and then something like
% for i in names do;...;done
The problem is that some of the filenames have spaces in them and the
array elements split on these spaces. I read the manpage and can't make
sense of what to do w/ this.
Help?
Try this,
for i in **/*(.); do foo; bar; done
Thanks.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author