From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43743-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 c73f3f4a for ; Mon, 29 Oct 2018 09:11:24 +0000 (UTC) Received: (qmail 29781 invoked by alias); 29 Oct 2018 09:11:14 -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: 43743 Received: (qmail 18969 invoked by uid 1010); 29 Oct 2018 09:11:14 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi1-f174.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.167.174):SA:0(-2.0/5.0):. Processed in 2.833339 secs); 29 Oct 2018 09:11:14 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rRd25x3SlzbDHLp4RSMjPv9Ztc+GbAJ82BAi2Quz1lw=; b=gjY8CK6KriSxwdeDRnow0L7hUjmP3daciJGyaMFt2cxxW2T+/CjCzfup5djQuW0J74 pRetHvotivo6OPIWbqhLTLSzgSbk5QhEvsIvN3uChf/BFCun+Io9c1YJckHlgvuz3sQZ S6dgH0cE0h8ieYAmQ3ql2jlEbD7wHyWEYYNtdPuESn0bMNmV0YHyN+XI4I2FgPOFngQ1 wib7V3tRDhJdgLPRrz8NC9F6Tld4Z9MNVp6Z9BMx9KU5IjeaYXrWHKHALlf8i2vaf6GJ gkLBFToDhJwakDDWnEwqjkj+mbNtQjo9t4got6sI2DF73P3IkdXWW6PWrPGHk9uecgQb FhkQ== 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=rRd25x3SlzbDHLp4RSMjPv9Ztc+GbAJ82BAi2Quz1lw=; b=dKtOBIrZrQ5u4cg1sZSUTfd+h5DmHI7jyNxSAVY7CQofZMjXFWno39qQM4G6alfrCj fK32pf9l51U4nNl/1moJGzDzb/U5dIEVPrUmdOrC0/8jwBb3dP0NCIv3qJzU8TTpTOCv BJfSQuIFcRuJKkG3u1UV957DRjmvh3jpLzl4SY5C/LZFQ6VXOlf9E2t74Vzv9D4gqvUt GqaodpKVDo3iFyljp17UEh+OPbZMpQVGLJCUSVoInZzUxkJ1Lkrlp9vvaL8OPPEXnLiO 7eb7d19HeGegXKatcAzZrzuTwXjDMGmLKFbL4yxpvaSZHsKiA61kiwZhE5FvqVPMfP8G HUkw== X-Gm-Message-State: AGRZ1gKqHfbWAEyJEcWYuBh+1DyHzVQR8/YyhTEEUw0XnfRWgILkfva9 qDDzNMUeST32ewYmFZJ8pvKwVd24wOqjZjcMAdo= X-Google-Smtp-Source: AJdET5dur5DA4wyXfNxYM9YeWGpwCGSv+RYk8ld2O+Y/QFBTPWHfffh65Gvoh57MgUvB2X6ffA7w5Su5JSVfFaEqmEA= X-Received: by 2002:aca:cc41:: with SMTP id c62-v6mr7742970oig.150.1540804268105; Mon, 29 Oct 2018 02:11:08 -0700 (PDT) MIME-Version: 1.0 References: <1BE52C46-161F-412B-A539-4B0EA87A2FCE@dana.is> In-Reply-To: From: Sebastian Gniazdowski Date: Mon, 29 Oct 2018 10:10:55 +0100 Message-ID: Subject: Re: Inconsistencies in "-quoting and @-splitting, could someone elaborate? To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Sun, 28 Oct 2018 at 22:13, Bart Schaefer wrote: > > On Sun, Oct 28, 2018 at 4:54 AM Sebastian Gniazdowski > wrote: > > > > @ is refered to as "@ -- double-quoted splitting of scalars" in > > completion. > > Well, that's incorrect, Oliver should not have put it that way. @ has > nothing to do with splitting of scalars; it would more correctly say > "prevent double-quoted joining of arrays". (In general you should ... > > So one can obtain always-array behavior with @. > > Also wrong, which is why the (A) flag was extended to mean "treat > single-element arrays as arrays instead of as scalars". The Ok, with those clear pointers a new whole-picture can be constructed: - @ - keep array form - A - apply array form > > I understand it as: for quoted expression, regenerate > > array-form by doing splitting. > > No, it regenerates nothing. It just preserves the array form that > already existed. If there was no array form in the first place, it > has no effect. I could see this clear fact from the execution times. @ doesn't cause much slowdown. That said, people on IRC also directed to the conclusion that @ is about splitting. It is hard to create final-truth documents, I hope I will be able to nicely rephrase it (ZNSHandbook). -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org