From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25947 invoked from network); 12 Jan 1998 09:23:38 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 12 Jan 1998 09:23:38 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA14208; Mon, 12 Jan 1998 04:02:54 -0500 (EST) Resent-Date: Mon, 12 Jan 1998 04:00:32 -0500 (EST) Message-Id: <199801120901.KAA25895@hydra.ifh.de> To: zsh-users@math.gatech.edu (Zsh users list) Subject: Re: Exporting arrays In-reply-to: "Adam Spiers"'s message of "Sun, 11 Jan 1998 18:16:03 MET." <19980111181603.60292@thelonious.new.ox.ac.uk> Date: Mon, 12 Jan 1998 10:01:45 +0100 From: Peter Stephenson Resent-Message-ID: <"Sc6O31.0.KT3.lkTkq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1218 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Adam Spiers wrote: > % unset foo > % export foo=(a b c) > % typeset | grep zzz > exported foo='(a b c)' > > Presumably there's a decent reason for this behaviour; would > someone be good enough to explain it to me? Geoff explained most of it, but didn't point out that in fact the export command doesn't create arrays at all, because there's no special syntax for it: it just treats "foo=(a b c)" as a string. (At least, I don't think he pointed that out. I've just got back am reading through my mail rather rapidly. I've got about 100 different ways of becoming a millionaire in a month. This is worse than Reader's Digest.) -- Peter Stephenson Tel: +39 50 911239 WWW: http://www.ifh.de/~pws/ Gruppo Teorico, Dipartimento di Fisica Piazza Torricelli 2, 56100 Pisa, Italy