From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2208 invoked from network); 22 Sep 2003 16:31:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Sep 2003 16:31:37 -0000 Received: (qmail 4235 invoked by alias); 22 Sep 2003 16:31:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19117 Received: (qmail 4223 invoked from network); 22 Sep 2003 16:31:27 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Sep 2003 16:31:27 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [217.174.194.138] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Sep 2003 16:31:27 -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 h8MGVM826754; Mon, 22 Sep 2003 18:31:22 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A1TaQ-0000tn-00>; Mon, 22 Sep 2003 18:30:54 +0200 Date: Mon, 22 Sep 2003 18:30:54 +0200 From: DervishD To: Danek Duvall , Zsh Subject: Re: Problem with an exported array Message-ID: <20030922163054.GA3443@DervishD> Mail-Followup-To: Danek Duvall , Zsh References: <8001.1064238241@csr.com> <1030922142208.ZM19975@candle.brasslantern.com> <20030922144528.GC12272@lorien.emufarm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030922144528.GC12272@lorien.emufarm.org> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Danek :) * Danek Duvall dixit: > Or, yet more generally, specify a function to transform the array into > the scalar? There are a few ways of doing that. If you have 'pager', the array, and you want 'PAGER', the scalar, you can transform 'pager' in 'PAGER' with: - PAGER="$pager" - PAGER="${(f)pager}" - PAGER="${(ps::)pager}" - Surely others... The first two are equivalent, and the third is useful if you want to fold the array using instead of '\n'. What I want is not a way of converting the array to an scalar, but a way of doing that *automatically*, as is already done with PATH or any other colon delimited variable ;)) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/