From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7546 invoked from network); 14 Jun 2000 14:38:07 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Jun 2000 14:38:07 -0000 Received: (qmail 16300 invoked by alias); 14 Jun 2000 14:37:30 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3157 Received: (qmail 16293 invoked from network); 14 Jun 2000 14:37:28 -0000 From: "Bart Schaefer" Message-Id: <1000614143704.ZM15861@candle.brasslantern.com> Date: Wed, 14 Jun 2000 14:37:04 +0000 In-Reply-To: <0FW500709EALIK@la-la.cambridgesiliconradio.com> Comments: In reply to Peter Stephenson "Re: Fun zsh trick for today" (Jun 14, 3:15pm) References: <0FW500709EALIK@la-la.cambridgesiliconradio.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-users@sunsite.auc.dk (Zsh users list) Subject: Re: Fun zsh trick for today MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 14, 3:15pm, Peter Stephenson wrote: } Subject: Re: Fun zsh trick for today } } Plus you don't need all those (@)'s once parameter substitution already has } arrays, which (f) provides. The only trick here is using double quotes to } get whole lines for splitting. I think the following should work in 3.0.8 } (can't quite remember if the trick of putting double quotes in the middle } made its way back The quotes in the middle is in 3.0.7, as part of the "minimal forwards compatibility" effort. There is a small bug with them in both versions, though; you can't take the length of the quoted part: zagzig[57] echo ${#"${(f)$(