From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28634 invoked from network); 22 Sep 2003 08:28:15 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 22 Sep 2003 08:28:15 -0000 Received: (qmail 19244 invoked by alias); 22 Sep 2003 08:28:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19107 Received: (qmail 19234 invoked from network); 22 Sep 2003 08:28:09 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 22 Sep 2003 08:28:09 -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 8:28:9 -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 h8M8S8805884 for ; Mon, 22 Sep 2003 10:28:08 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A1M5J-0000JV-00>; Mon, 22 Sep 2003 10:30:17 +0200 Date: Mon, 22 Sep 2003 10:30:17 +0200 From: DervishD To: Zsh Subject: Problem with an exported array Message-ID: <20030922083017.GA1121@DervishD> Mail-Followup-To: Zsh Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi all :) Instead of turning on SHWORDSPLIT or using ${=PAGER}, I decided to set PAGER as an array recently, with the following: typeset -gxa PAGER PAGER=(/bin/view -) In fact, if I do 'whatever | $PAGER' it works. The problem is that PAGER is not exported to the environment of commands!. So, if I do now 'man whatever', 'man' barfs saying that it cannot find /usr/bin/pager, the default pager for man. But if I do something like 'PAGER=$PAGER man whatever', it works perfectly. Aren't arrays exported? If I do the following: typeset -gx PAGER="/bin/view -" then 'man' works OK. Am I doing something wrong or is just that arrays cannot be exported? BTW I'm using zsh 4.0.7 Thanks in advance. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/