From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4933 invoked from network); 16 Nov 1998 19:19:11 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 16 Nov 1998 19:19:11 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id OAA24359; Mon, 16 Nov 1998 14:16:14 -0500 (EST) Resent-Date: Mon, 16 Nov 1998 14:16:14 -0500 (EST) To: "Bart Schaefer" Cc: zsh-workers@math.gatech.edu Subject: Re: PATCH: 3.1.5 - sample associative array implementation 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> <981115120336.ZM28744@candle.brasslantern.com> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: Timothy Writer Date: 16 Nov 1998 14:16:40 -0500 In-Reply-To: "Bart Schaefer"'s message of "Sun, 15 Nov 1998 12:03:36 -0800" Message-ID: X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Resent-Message-ID: <"jcWl92.0.Yy5.-d7Ks"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4655 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu "Bart Schaefer" writes: > 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? No: $ unset() { > builtin unset "$@" > } /usr/dt/bin/dtksh: unset: illegal function name $ -- Tim Writer Tim.Writer@ftlsol.com FTL Solutions Inc. Toronto, Ontario, CANADA