From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5009 invoked from network); 15 Nov 1998 20:06:40 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 15 Nov 1998 20:06:40 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id PAA00484; Sun, 15 Nov 1998 15:05:12 -0500 (EST) Resent-Date: Sun, 15 Nov 1998 15:05:12 -0500 (EST) From: "Bart Schaefer" Message-Id: <981115120336.ZM28744@candle.brasslantern.com> Date: Sun, 15 Nov 1998 12:03:36 -0800 In-Reply-To: Comments: In reply to Timothy Writer "Re: PATCH: 3.1.5 - sample associative array implementation" (Nov 15, 3:42am) References: <9811111358.AA51361@ibmth.df.unipi.it> <981111125236.ZM3587@candle.brasslantern.com> <981112012358.ZM9722@candle.brasslantern.com> <981112173201.ZM13829@candle.brasslantern.com> <981113224137.ZM20181@candle.brasslantern.com> X-Mailer: Z-Mail (4.0b.820 20aug96) 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: <"tjvsq2.0.V7.uFpJs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4640 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Nov 15, 3:42am, Timothy Writer wrote: } Subject: Re: PATCH: 3.1.5 - sample associative array implementation } } > That leads to the question, how do you remove a particular key/value pair } > from a ksh93 associative array? } } "unset foo[bar]" seems to work. Ooh, ick. That means in ksh93 `unset' is a keyword, not just a builtin, and changes the parse of what follows it. I rather don't like that ... can you make a shell function named "unset" in ksh93? (Shell function or not, zsh globs foo[bar], which could mean unsetting the variables fooa, foob, and foor.) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com