Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Associative Arrays
- X-seq: zsh-users 8093
- From: Stephane Chazelas <Stephane.Chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Associative Arrays
- Date: Fri, 22 Oct 2004 13:32:33 +0100
- Cc: Nikolai Weibull <zsh-users-list@xxxxxxxxxxxxx>
- In-reply-to: <Pine.LNX.4.61.0410210900110.14956@xxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx, Nikolai Weibull <zsh-users-list@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20041020195348.GJ11322@xxxxxxxxxxxxxxxxxx> <20041021110526.GE1740@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20041021123835.GF9224@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.61.0410210900110.14956@xxxxxxxxxxxxxxxxxx>
On Thu, Oct 21, 2004 at 09:40:14AM -0700, Bart Schaefer wrote:
[...]
> local -A named; set -A named "$@"
[...]
That's not correct as "$@" may have "-x"/"-e" like elements.
ksh has:
set -A named -- "$@"
it doesn't seem to work in zsh 4.2.0.
named=("$@")
is OK though.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author