From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6190 invoked by alias); 14 Jan 2018 04:03:50 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23087 Received: (qmail 29192 invoked by uid 1010); 14 Jan 2018 04:03:50 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl 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(85.128.245.120):SA:0(-1.9/5.0):. Processed in 3.650605 secs); 14 Jan 2018 04:03:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new using ClamAV (6) Date: Sun, 14 Jan 2018 05:03:41 +0100 From: Sebastian Gniazdowski To: Bart Schaefer Cc: Zsh Users Message-ID: In-Reply-To: References: <20171212150024.13a1e78b@pwslap01u.europe.root.pri> <20171213113408.1d7fb3db@pwslap01u.europe.root.pri> Subject: Re: Is outer quoting not needed (docs say "redundant")? X-Mailer: Airmail (467) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 13 Jan 2018 at 18:36:39, Bart Schaefer (schaefer=40brasslantern.com) w= rote: > These are not the same. Because of the way backslashes behave when > they follow the :- operator plus the effect of the (z) flag, the > latter is actually the same as > =20 > arr=3D( =22=24=7B(=40Q)=24=7B(z=40):-=22a=5C b=22 c=7D=7D=22 ) > =20 > You can see this if you examine the inner expansion in isolation: > =20 > % print -rl =24=7B(z=40):-=22a b=22 c=7D > a > b > c > % print -rl =24=7B(z=40):-a=5C=5C b c=7D > a=5C b > c > =20 Thanks. The point about =22a=5C b=22 shows that quotes are indeed active.= However for final output,=C2=A0it's like =22 is being merged into quasi-= quotes that are between :- and =7D. -- =20 Sebastian Gniazdowski psprint /at/ zdharma.org