From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2885 invoked from network); 13 Nov 1998 01:38:24 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 13 Nov 1998 01:38:24 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id UAA28220; Thu, 12 Nov 1998 20:33:43 -0500 (EST) Resent-Date: Thu, 12 Nov 1998 20:33:43 -0500 (EST) From: "Bart Schaefer" Message-Id: <981112173201.ZM13829@candle.brasslantern.com> Date: Thu, 12 Nov 1998 17:32:01 -0800 In-Reply-To: Comments: In reply to Timothy Writer "Re: PATCH: 3.1.5 - sample associative array implementation" (Nov 12, 7:04pm) References: <9811111358.AA51361@ibmth.df.unipi.it> <981111125236.ZM3587@candle.brasslantern.com> <981112012358.ZM9722@candle.brasslantern.com> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: Timothy Writer , zsh-workers@math.gatech.edu Subject: Re: PATCH: 3.1.5 - sample associative array implementation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"GmFwB.0.tu6.tnuIs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4619 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Nov 12, 7:04pm, Timothy Writer wrote: > Subject: Re: PATCH: 3.1.5 - sample associative array implementation [Referring to ksh93] > > typeset -A foo > foo[bar]=baz > echo ${!foo} > > just prints "foo". Makes sense because foo is not a nameref. That's not what I would have expected; I would have expected it to either (a) behave the same as ${foo} [which means what, when foo is an associative array?] or (b) print nothing, because there's no variable to which the value of foo can possibly refer. Printing its own *name* like that isn't sensible to me.