Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [key]+=val
- X-seq: zsh-workers 41766
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Subject: Re: [key]+=val
- Date: Tue, 26 Sep 2017 10:28:52 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=mILJUlARc12ZrkvLvOl+jNDMWsS9jTffWBENkK22Ok0=; b=C92pLhGF+pYqdugaK6/Qa3b9u9rYZ+d6YfD0d1gkA3CfRtP/DNMVckJl/bbwxaGyOG WU19N5BarH6bFBckFYbRTAH93bX0VoVo9BZqrNFwDWerGXCSd/LsL+B3hD0uFZnH53UQ u+q0qONZgkBveh1w8xZFPqvL+bP678rqFqJBWaQWPkEYry8Ut5qo+1NFozNJKQnInIwg eWt2fZxiA2jQppVAQJvGGr3Ru0IKPXtF0YNsrWEG/kEs22ZdXoh6wuLziPDNz5bhB6wS mnT0iJ+4C5VI2a6rZb3XBLU8Tokex+J7zztAdCnBIm4pvRJmNq9w0Dmqo3OgOTx9nX0N 5Eww==
- In-reply-to: <20170926103254.1670a650@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20170925103513eucas1p2b7d91180ccc6defe455daca9248ae222@eucas1p2.samsung.com> <20170925113509.25c2703e@pwslap01u.europe.root.pri> <CAH+w=7Zb0MWChwWBxGgU17ibMVACoWMsLNtMwETFBwukgZ0yZQ@mail.gmail.com> <20170926103254.1670a650@pwslap01u.europe.root.pri>
On Sep 26, 10:32am, Peter Stephenson wrote:
}
} + local -A keyvalarray
} + keyvalarray=([1]=who [2]=anyway [1]+=is [1]+=that [1]+=mysterious [1]+=man)
} + print -rl -- ${(kv)keyvalarray}
} +0:Append to element of associative array on creation
} +>1
} +>whoisthatmysteriousman
} +>2
} +>anyway
} +
} + local -A keyvalhash
} + keyvalhash=([one]=hows [one]+=your [one]+=father [one]+=today)
} + print -rl -- ${(kv)keyvalhash}
} +0:Append to element of associative array on creation
} +>one
} +>howsyourfathertoday
Did you intend for both of those tests to use associative arrays?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author