From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6132fd2a for ; Tue, 18 Feb 2020 23:36:08 +0000 (UTC) Received: (qmail 6152 invoked by alias); 18 Feb 2020 23:36:01 -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: List-Unsubscribe: X-Seq: 45471 Received: (qmail 2499 invoked by uid 1010); 18 Feb 2020 23:36:01 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f45.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(209.85.217.45):SA:0(-2.0/5.0):. Processed in 1.830986 secs); 18 Feb 2020 23:36:01 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.217.45 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ydJid6kIHWarELFzePFFO/4hNxfRKQqNJVO9j498QTg=; b=R7hpmrsRmuoWrC+8kdm4HdZzkMxdzqd98qXIFVY4A8Q2y6Cd7tw/cQyHK0hHUGb89d d4v0Wk2attlgBCfrrahBKLuWSSbbkPqMPojnFG9OzUeH6NcqvrIDtUebObfWP6RuSFj5 N2iMKjU5DPEavH//jcOjWGf0z7j8SGVGt3Oi2OwSyEd9oLW6QotI6BhLajwIGsORKPjo VB9JPZKuFulLshhpCRY30Nxn/EjMryNpNAElwns2IjMd3IzRzwUKwwyhr6veEgk3srZL uk6m1oiyY9apvhEE6iOUDmeEubPX8NcArJG1iCQxYYEyp0idt8Pp+8+xWd0DS+tzImPW tLmA== X-Gm-Message-State: APjAAAXdXq2Rh/vYz7rtYDBxll0zsPE2Wnyk1CVuHGF0DRXjFMl6iGWU 2zkEwb4xcByOSFIQOf9MesUVPYS1+BNeCKmZaj4= X-Google-Smtp-Source: APXvYqxYUPaAL7iXTlR2gnK3o9O5EUYakgZz3bzfKdhNMnWDgQwgvk4FxqcHTwEyrQgh9g4JoMf1WnPLMgctorWHdMQ= X-Received: by 2002:a67:e24f:: with SMTP id w15mr12581220vse.113.1582068926160; Tue, 18 Feb 2020 15:35:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Wed, 19 Feb 2020 00:35:33 +0100 Message-ID: Subject: Re: When array append without parens doesn't work? To: Roman Perepelitsa Cc: Zsh hackers list Content-Type: multipart/alternative; boundary="0000000000005aa37e059ee220d2" --0000000000005aa37e059ee220d2 Content-Type: text/plain; charset="UTF-8" On Tue, 18 Feb 2020 at 22:45, Roman Perepelitsa wrote: > On Tue, Feb 18, 2020 at 10:33 PM Sebastian Gniazdowski > wrote: > > > > Hi, > > I recall once reporting a problem to this list, to which Bart responded > > with "you'll thank me later" about the correct array-append syntax, which > > is arr+=( ... ), not arr+=.... I cannot find this message. > > Code: > > () { > emulate -L zsh -o ksh_arrays > local -a x > x+=a > x+=b > typeset -p x > } > > Output: > > typeset -a x=( ab ) > > Roman. > Thanks, however, I don't think that I was using ksharrays when I've encountered problems with +=.... -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit Blog: http://zdharma.org --0000000000005aa37e059ee220d2--