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 43740
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Inconsistencies in "-quoting and @-splitting, could someone elaborate?
- Date: Sun, 28 Oct 2018 14:20:40 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Dwv5fudYhLo+p/AhUk4dN/Mn+R9BGueMj7UiQ2k6q/c=; b=XMWSSbHJ+p+bIWTMEPf+89eGUNhXMWhd5ScIv64obtUPTsNmm1rO3gosoYFij3llru iTIaLfg4+Z5GgPQ01BA05hjOVxkBsGpvdp3xxopYwc8M3eN6MMNHD1Ti56+kUCkYFTKi xf28q36AGt9CgLtWwx+IKAXAN9uEW3KKvIYP/1U/9pQ421M1jBCGWTsMTO2VXClO2No7 osduPfx2SZkLVa0X+642DIKcAoM2tS1yCPmQgfMGIum6EZEgkqNQEX9xJ1OdRhu47bS8 ZoqFGrFbAFqOrOWUA+wvh9rSFQovfh9vp2Rea4yro0Pj+CK48sJb29ZCOmj0DYzrHQj1 fZag==
- In-reply-to: <CAKc7PVBWSeSna03nsPnXutEQ4Q8gw0=wLkNZ0-gPhbgsg9dBbw@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> <CAKc7PVBWSeSna03nsPnXutEQ4Q8gw0=wLkNZ0-gPhbgsg9dBbw@mail.gmail.com>
On Sun, Oct 28, 2018 at 8:41 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> (one could think that if a flag takes the responsibility for
> splitting in string-context ("-quoted), then that it will mimic the
> first tool to do that, the @)
Just to beat this entirely to death, you are wrong because that is NOT
WHAT @ DOES.
> 2.description) if ${(@)array} makes single-element quoted array back
> an array again, then shouldn't @ acting on single-element data (Bart
> said it's not array) returned by (z)/(s::) also make it an array
> again?
We could have done that instead of using (A), but it would have broken
historical behavior, so we did not.
> 3.description) Basically, the general method of Zshell to obtain
> scalars with no splits – double-quoting – isn't followed by (z) and
> (s::) flags.
Also explained in my first message. Implicit joining occurs before
explicit splitting.
> The manuals often elaborate about some situations
This is spelled out in painful detail in the "Rules" subsection.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author