Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: 3.1.5 - sample associative array implementation



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



Messages sorted by: Reverse Date, Date, Thread, Author