From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24329 invoked by alias); 25 Sep 2017 17:53:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41763 Received: (qmail 24610 invoked by uid 1010); 25 Sep 2017 17:53:36 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f179.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.179):SA:0(-2.6/5.0):. Processed in 4.103944 secs); 25 Sep 2017 17:53:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=c5yONLPjSsHpHlVtmnrAzubl3YSrgFnTDiCe584l9GA=; b=dF8nTs3lQmFFqZrv7YmnnJe9Y787Jl/91FY+taUOHWUWK5/yBsIOxZYRF5ygUvTGlU 2x/WGHXJpq28OMFY2/iCqAE9b1s+TnH9x8qX6Mpen9w54cWEmlXxpv5iQMLSbZmn1cb7 LKCXsiHdOga9UkWL+rObPA4kEyn5msoF2gkTChnFyacbm5SY7qVIJD0dgKxivOE1nmQ4 rlugklX+MAsWC6RAf1/rQzxv1A6o66DL4hBc/Jn3N8TDWkcKwwp1p95/uo4FekOtZY53 9XcWsSq5ckkuhbTt1qKGT9yEs5diSP7yCufAZ3o4Os5dzbbk9UVJKVI/PQwl9wZ8x//w m43Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=c5yONLPjSsHpHlVtmnrAzubl3YSrgFnTDiCe584l9GA=; b=HWDgv3Kva/S69gcQ+mMVFahx9ZHKyawE6g5jFxhLm23XkfVBie0ngSobFyASOQ2X8N oyAIa8Wa0sHXx0LSYnhry0MizDPGkJem0mVPP3LqKIsmoUPD5B9FS+6oW3+pdi7h0+2P BmoTfYP953kvPRL3FU1Bx32AueVdWjGDONyF2fE6rFqUVkQJjCll1qfRFC55fTkTvjai udCjoJkcwHye/sPV2mRWaeR3+JpiFFVzOc8YysU4WlOnw/x3M/0fkK3NJFdUpyzTGO7I P7RrP6Cq32DQ7OU4fwk8zmPNxnRXjGBb0lkvWbFHaULMlZ8tKIa3+8XQUhjuF+ADCyJa hpow== X-Gm-Message-State: AHPjjUge9KTKC/sZU74tCF7hoR8IVBFwmGtWZkWqDxLgJY1jLEkwM4qa 35oL3fW5yDtbap3gRPlzvlHFFDep111w4e7vDJdj3f83 X-Google-Smtp-Source: AOwi7QBLeUbtO5yv+Tz5jlgux+9J9mS42kxjqLal0CtbTaAUczZ9jQ2CBlrKgg+h1GjX27xAM5fIegCCaggWhfjmVfM= X-Received: by 10.200.15.8 with SMTP id e8mr12983925qtk.315.1506362005868; Mon, 25 Sep 2017 10:53:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170925113509.25c2703e@pwslap01u.europe.root.pri> References: <20170925113509.25c2703e@pwslap01u.europe.root.pri> From: Bart Schaefer Date: Mon, 25 Sep 2017 10:53:25 -0700 Message-ID: Subject: Re: [key]+=val To: "Zsh Hackers' List" Content-Type: text/plain; charset="UTF-8" On Mon, Sep 25, 2017 at 3:35 AM, Peter Stephenson wrote: > > foo=([key]+=val) > > doesn't (just creates the value), because you're starting with an empty > set of values in foo so there's nothing to append to. Does this sound > reasonable? It's a messy layering violation otherwise so it would need > a good reason to do it differently. Ksh says: $ typeset -A foo $ foo=([samekey]+=val [samekey]+=ue [samekey]+=grows) $ typeset -p foo typeset -A foo=([samekey]=valuegrows)