From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10460 invoked from network); 4 May 1998 03:43:16 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 4 May 1998 03:43:16 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id XAA17353; Sun, 3 May 1998 23:39:30 -0400 (EDT) Resent-Date: Sun, 3 May 1998 23:39:30 -0400 (EDT) To: zsh-workers@math.gatech.edu Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.workers Subject: Re: env variables Date: 4 May 1998 03:39:45 GMT Organization: PrimeNet Computer Consultants Message-ID: References: <199805012044.NAA22048@wank.pdi.com> Reply-To: mason@primenet.com.au NNTP-Posting-Host: coral.primenet.com.au X-Trace: coral.primenet.com.au 894253185 10423 (None) 203.24.36.33 X-Complaints-To: usenet@coral.primenet.com.au X-Newsreader: slrn (0.9.5.1 UNIX) Resent-Message-ID: <"t1kaB1.0.1F4.nXJJr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3922 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Nik Gervae typed: :> Arrays aren't exported, because there's no standard or de facto method of :> exporting arrays, so nothing would understands them. Only strings are :> exported. From your example, CDPATH is a string, cdpath is an array. :Hmm. That sounds slightly fishy in that csh happily exports array :variables, but then csh is bogus in so many ways.... I've managed Not as arrays. In fact, I can't see it doing it at all. % csh -f % set | fgrep "(" | cut -f1 argv path % env | egrep -i "^(argv|path)" | cut -f1 -d= PATH but PATH is a colon separated string. path is a space separated string which is pretending to be an array. You could export it as such but it would be useless. What happens when an element in the array has a space in it? % set l=(a b "c d") % foreach i ($l) ? echo $i ? end a b c d % zsh -f % l=(a b "c d") % foreach i ($l); echo $i; end a b c d -- Geoff Wing Mobile : 0412 162 441 Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/