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

Re: (AA) example



On Thu, 25 Oct 2012 17:48:54 +0200
Mark van Dijk <lists+zsh@xxxxxxxxxxxxxx> wrote:
> I'd like to ask for an example of how the A and AA parameter expansion
> flags work. The description in the manual is too complicated for me to
> grasp.

I must say I've always found these flags a complicated distraction which
never quite do what I want (which is why I haven't given an example).

> I am not sure whether these flags can add a value to an (associative)
> array which already exists?

I'd suggest sticking with the obvious ways:

assoc+=(key value)
assoc[key]=value

pws



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