From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11027 invoked by alias); 25 Oct 2012 16:27:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17341 Received: (qmail 4498 invoked from network); 25 Oct 2012 16:27:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) Date: Thu, 25 Oct 2012 17:27:32 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: (AA) example Message-id: <20121025172732.56a44ed2@pwslap01u.europe.root.pri> In-reply-to: <50895F66.9050407@internecto.net> References: <50895F66.9050407@internecto.net> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-TM-AS-MML: No On Thu, 25 Oct 2012 17:48:54 +0200 Mark van Dijk 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