Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.5 - sample associative array implementation
- X-seq: zsh-workers 4655
- From: Timothy Writer <Tim.Writer@xxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: 3.1.5 - sample associative array implementation
- Date: 16 Nov 1998 14:16:40 -0500
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Sun, 15 Nov 1998 12:03:36 -0800"
- References: <9811111358.AA51361@xxxxxxxxxxxxxxxxx> <vb1znanvcm.fsf@xxxxxxxxxxxxxxx> <m3iugmj8y8.fsf@xxxxxxxxxxxxxxxxx> <981111125236.ZM3587@xxxxxxxxxxxxxxxxxxxxxxx> <m3d86t7235.fsf@xxxxxxxxxxxxxxxxx> <981112012358.ZM9722@xxxxxxxxxxxxxxxxxxxxxxx> <m367ck7907.fsf@xxxxxxxxxxxxxxxxx> <981112173201.ZM13829@xxxxxxxxxxxxxxxxxxxxxxx> <m3zp9v597a.fsf@xxxxxxxxxxxxxxxxx> <981113224137.ZM20181@xxxxxxxxxxxxxxxxxxxxxxx> <m3n25t5otp.fsf@xxxxxxxxxxxxxxxxx> <981115120336.ZM28744@xxxxxxxxxxxxxxxxxxxxxxx>
"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxx
FTL Solutions Inc.
Toronto, Ontario, CANADA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author