From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8584 invoked from network); 21 Jun 2001 03:51:01 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Jun 2001 03:51:01 -0000 Received: (qmail 978 invoked by alias); 21 Jun 2001 03:50:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15015 Received: (qmail 955 invoked from network); 21 Jun 2001 03:50:19 -0000 From: "Bart Schaefer" Message-Id: <1010621035006.ZM1345@candle.brasslantern.com> Date: Thu, 21 Jun 2001 03:50:06 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Minor export oddity MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii It's possible to export parameters named "1", "2", etc., but it's not possible to assign values to them. You have to export them with typeset to get them to actually appear in the environment. So: schaefer[501] export 1=bar BUG: parameter recreated with wrong flags export: 1: can't assign initial value for array schaefer[502] typeset -gx 1=baz BUG: parameter recreated with wrong flags typeset: 1: can't assign initial value for array And: schaefer[508] foo() { typeset -gx 1 ; printenv | grep ^1 } schaefer[509] foo 1= schaefer[510] export 2 schaefer[511] printenv | grep ^2 schaefer[512] typeset -gx 2 schaefer[513] printenv | grep ^2 2= -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net