Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Inconsistencies in "-quoting and @-splitting, could someone elaborate?
- X-seq: zsh-workers 43743
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Inconsistencies in "-quoting and @-splitting, could someone elaborate?
- Date: Mon, 29 Oct 2018 10:10:55 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <CAH+w=7ZH7tkqcSu6gPd6yOXosa2bGg2n6YtLU2x7rtU2gqsn6w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCdqYwOrYr5-7bzduNsJd9OAUz0B-68jg_D5MqMUiVnKw@mail.gmail.com> <1BE52C46-161F-412B-A539-4B0EA87A2FCE@dana.is> <CAKc7PVAReJOH_T24hZ3qEMpyZGaXat3Ak7muYg9vJEC6HZKhag@mail.gmail.com> <CAH+w=7ZH7tkqcSu6gPd6yOXosa2bGg2n6YtLU2x7rtU2gqsn6w@mail.gmail.com>
On Sun, 28 Oct 2018 at 22:13, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Oct 28, 2018 at 4:54 AM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author