From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5318 invoked from network); 22 Sep 2003 14:02:55 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Sep 2003 14:02:55 -0000 Received: (qmail 26140 invoked by alias); 22 Sep 2003 14:02:40 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19114 Received: (qmail 26130 invoked from network); 22 Sep 2003 14:02:39 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Sep 2003 14:02:39 -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 14:2:39 -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 h8ME1s832321; Mon, 22 Sep 2003 16:01:54 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A1RIk-0000h8-00>; Mon, 22 Sep 2003 16:04:30 +0200 Date: Mon, 22 Sep 2003 16:04:30 +0200 From: DervishD To: Peter Stephenson Cc: Zsh Subject: Re: Problem with an exported array Message-ID: <20030922140430.GA2215@DervishD> Mail-Followup-To: Peter Stephenson , Zsh References: <20030922113351.GA50@DervishD> <8001.1064238241@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8001.1064238241@csr.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Peter :) * Peter Stephenson dixit: > > I think that the most used case will be joining with spaces, > > maybe the colon (PATH and the like). > This gives me an idea... it looks like a minimal modification to the > user version of the PATH stuff can give you a combination where pager is > an array and PAGER is a scalar with the elements joined by spaces. Cool, since my idea of tieing both variables won't work because the joining character is a colon and not an space :((( > The only downside I can see is that you have to remember to use $pager, > not $PAGER, when you want the array. Not a problem, since I already do this with PATH and path, for example. In fact is a pro, because I do that automatically ;) > If this isn't going to be good enough, or someone can see a problem, say > now, since I don't want to clutter the parameter code more than is > necessary. However, if it's useful it seems a relatively clean change > compared with most of the typeset flummery. For me it is right, but I must confess I have interest in it ;))) Although I cannot use that with my current zsh version, it doesn't matter really since I don't modify the variables (on normal use, I mean), and I can set both variables by hand in my /etc/zshenv. But I'm ready for a new Zsh version ;)))) Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/