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 c460a769 for ; Tue, 18 Feb 2020 21:33:45 +0000 (UTC) Received: (qmail 1615 invoked by alias); 18 Feb 2020 21:33:40 -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: 45468 Received: (qmail 18247 invoked by uid 1010); 18 Feb 2020 21:33:40 -0000 X-Qmail-Scanner-Diagnostics: from mail-vs1-f52.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.52):SA:0(-2.0/5.0):. Processed in 1.528299 secs); 18 Feb 2020 21:33:40 -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.52 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:from:date:message-id:subject:to; bh=VJfKBoWoEeCWkyUlfUrfHhWMwMB8XVVhOw4dntQTgLs=; b=V9clg7WApXypOxEpsSXueUiMEYl+hg2t0LjbxzclnYQGQxctveLw8RZRG9Nx50vwEN H5wd95PgNecdZgK8pB97QRLtTROvtH3bfyizmyQ4xABY7w/dRe16hF/cgZEMBfsK69uZ fqrV57CA5SBN9W/Nn1yYYoRhXvPFblCOJkgBuonm27s3DtMDTDPcQbwiqsbGHtQ7wJ6v 2OO5+oQfDZx4N4ISABcd1QUA8nAfjsH/mgkAPmQABRg6cu7JWJQJtql4MYRvx71z/n9z xeXa44o9BEbPpMA5SymRFlZM87j8i3992XTuEhtWz7h3FZyaqq22Alsk5zfDaB6iyQYr uFUg== X-Gm-Message-State: APjAAAVAc/4Xpy/pMCmiDUpFq5o79BqzvuFp/o3+vrjj/KD07kU9r19n hcvDp+W07vq0YYabTRsgsk8NAKYJ/hKAjXyQIN2eoyfr6JU= X-Google-Smtp-Source: APXvYqwFqiJNRmJmVRUQhdsrt9/2DelVusVo8apyu7tO1LpIJPLlhQ+a+PaMrjIOAptY84k7zLaWESJzwTj0mQtG6dg= X-Received: by 2002:a67:f6c8:: with SMTP id v8mr12519121vso.147.1582061585405; Tue, 18 Feb 2020 13:33:05 -0800 (PST) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 18 Feb 2020 22:33:12 +0100 Message-ID: Subject: When array append without parens doesn't work? To: Zsh hackers list Content-Type: multipart/alternative; boundary="000000000000cf9c01059ee06aeb" --000000000000cf9c01059ee06aeb Content-Type: text/plain; charset="UTF-8" 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. I've only found a report on IRC that's related, however, what's in it appears to work fine: http://sprunge.us/sUNWBk Can anyone provide an example of the "almost-works" property of the +=... syntax? -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit Blog: http://zdharma.org --000000000000cf9c01059ee06aeb--