Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: alternative method for a simple for
- X-seq: zsh-users 14383
 
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
 
- To: Sebastian Stark <seb-zsh@xxxxxxxxxxx>
 
- Subject: Re: alternative method for a simple for
 
- Date: Tue, 15 Sep 2009 12:09:20 +0200
 
- Cc: Joke de Buhr <joke.de.buhr@xxxxxxxxx>, zsh-users@xxxxxxxxxx
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:mime-version:received:in-reply-to:references         :date:message-id:subject:from:to:cc:content-type;        bh=fGVsb/Q7wd7TNGTm6Yif2Bkf5cByvv18iTbtu/ADVZw=;        b=GkIzQeCJeG3fnzUBYRHTQfFjFqag3ZrSJDFAxYDlAM76JSKKyMJOJjRxvyg4Z1NDIJ         y7m8iL0yYDSESuI961by7WEHvlw8CoZCjf1o/4VsX8Gy5BKnfhorVlAqfhrc0o6E+bZC         ed5w4rF2mMZQkk1u9VFi7MqMDN5C4T881uwBk=
 
- Domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=mime-version:in-reply-to:references:date:message-id:subject:from:to         :cc:content-type;        b=ceWNIbV7wZsjcdxB3F3BB/9YiquYGhMb8iOGSAcatGv3xVnXLgFEAOhvV1VBi+jDlN         7mG7Hosv797mu+XgVMjvPCz7b2iVWR7R1IjuJSef/fOovHZzmsxdGK9mMs3ICwJ2xra4         yTTKCKGsFdm+75dFparTSbcV/RPDdfp/HTPOM=
 
- In-reply-to: <A0C19B87-93F9-472D-AFEE-DCCBD766AACD@xxxxxxxxxxx>
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- References: <20090915125419.3528@binki>	 <200909151040.35397.joke.de.buhr@xxxxxxxxx>	 <A0C19B87-93F9-472D-AFEE-DCCBD766AACD@xxxxxxxxxxx>
 
2009/9/15 Sebastian Stark <seb-zsh@xxxxxxxxxxx>:
>
> On 15.09.2009, at 10:40, Joke de Buhr wrote:
>
>> On Tuesday 15 September 2009 05:54:19 d.henman wrote:
>>
>> Maybe you want to use the short version of for. It's rather short
>>
>>  for file (*wav) ffmpeg -b 160k -i $file $file:r.mp3
>>
>> or
>>
>>  for file (*wav) { ffmpeg -b 160k -i $file $file:r.mp3 }
>>
>> That's short and clear syntax.
>
> It is also incompatible and deprecated syntax :)
I think you're thinking of
for file in *.wav; command here
instead of
for file in *.wav; do command here; more commands; done
AFAIK, for file (list) {commands} isn't deprecated, just zsh-specific.
-- 
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author