From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27899 invoked from network); 22 Sep 2003 09:51:04 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Sep 2003 09:51:04 -0000 Received: (qmail 11365 invoked by alias); 22 Sep 2003 09:50:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19110 Received: (qmail 11356 invoked from network); 22 Sep 2003 09:50:57 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Sep 2003 09:50:57 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 22 Sep 2003 9:50:57 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.cambridgesiliconradio.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Mon, 22 Sep 2003 10:47:40 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 22 Sep 2003 10:51:09 +0100 To: Zsh Subject: Re: Problem with an exported array In-reply-to: "Oliver Kiddle"'s message of "Mon, 22 Sep 2003 11:08:46 +0200." <29185.1064221726@gmcs3.local> Date: Mon, 22 Sep 2003 10:48:50 +0100 Message-ID: <5757.1064224130@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 22 Sep 2003 09:51:09.0765 (UTC) FILETIME=[0CD9DF50:01C380EF] Oliver Kiddle wrote: > There are hacks which could allow us to represent arrays in it but not > in a way programs like man could be expected to understand. That's not entirely true. A brief and thorougly unscientific investigation suggests man is doing popen() or something equivalent. That means that if you set typeset -ax PAGER PAGER=(/bin/view -) and zsh exported PAGER as the string "/bin/view -", it would work because the shell used to invoked the pager would do the splitting. (What I actually died was confirm that export PAGER="less -e" did the right thing.) It shouldn't be too hard to make arrays get exported joined with a space, or maybe even a configurable string (though the param structure isn't conveniently extensible at the moment). I think that's far more useful than the ksh behaviour --- probably that's just a side effect of the fact that all variables in ksh are arrays but most just have the first element set. However, I haven't looked into it. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************