From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18541 invoked from network); 19 Feb 2004 17:15:32 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Feb 2004 17:15:32 -0000 Received: (qmail 607 invoked by alias); 19 Feb 2004 17:15:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7063 Received: (qmail 579 invoked from network); 19 Feb 2004 17:15:08 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 19 Feb 2004 17:15:08 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.193.203.32] by sunsite.dk (MessageWall 1.0.8) with SMTP; 19 Feb 2004 17:15:7 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i1JHExe04326; Thu, 19 Feb 2004 18:15:00 +0100 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1Atrl2-0000la-00>; Thu, 19 Feb 2004 18:14:40 +0100 Date: Thu, 19 Feb 2004 18:14:39 +0100 From: DervishD To: Peter Stephenson Cc: Zsh users list Subject: Re: Can this be done with an array parameter? Message-ID: <20040219171439.GB2941@DervishD> Mail-Followup-To: Peter Stephenson , Zsh users list References: <20040219164631.GB2804@DervishD> <23897.1077210054@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <23897.1077210054@csr.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Peter :) * Peter Stephenson dixit: > > And my original question: can the array be assigned one line of > > the file per slot without the loop? > array=(${(f)"$( There are lots of examples like this in the completion code, except most > are about fifty times more complicated. And its logical: I should have took a look at the completion code, since it processes a lot of files. I just didn't thought of it, sorry for the noise :(( Anyway I'm still stunned by the first example I put, the assignment to the array in the form array=($array $newitem) Why Zsh quotes correctly? (I should define 'correctly' as 'the way I wanted'...). Again, thanks for your answer :) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/