From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: ** X-Spam-Status: No, score=2.6 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 30511 invoked from network); 8 Apr 2020 10:46:44 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 8 Apr 2020 10:46:44 -0000 Received: (qmail 5603 invoked by alias); 8 Apr 2020 10:46:38 -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: 45664 Received: (qmail 553 invoked by uid 1010); 8 Apr 2020 10:46:38 -0000 X-Qmail-Scanner-Diagnostics: from smtpq3.tb.ukmail.iss.as9143.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25772. spamassassin: 3.4.4. Clear:RC:0(212.54.57.98):SA:0(0.6/5.0):. Processed in 3.761283 secs); 08 Apr 2020 10:46:38 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _mailcloud.virginmedia.com designates 212.54.57.98 as permitted sender) X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.137 X-CNFS-Analysis: v=2.3 cv=IPGZ9jnG c=1 sm=1 tr=0 a=wOjQ4in9RKFG6jhXMc4Ghg==:117 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=KEnZaF_ea6UA:10 a=IkcTkHD0fZMA:10 a=DoY9bV0jb9AA:10 a=ixoRDEBj4pwL2RbZ9iQA:9 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.w.stephenson@ntlworld.com Date: Wed, 8 Apr 2020 11:45:55 +0100 (BST) From: Peter Stephenson To: Ronald Fischer , zsh-workers@zsh.org Message-ID: <1699906240.4127800.1586342755731@mail2.virginmedia.com> In-Reply-To: References: Subject: Re: Bug related to single-quoting a String MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev64 X-Originating-IP: 165.225.81.56 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4wfAcLgBH4IaObshhbtMJNoQXEkUO3i8AWTojM3mfVPBVb/xU9jIRIBp5ExNRKDXMvyrc6NoNVy0f5bCW9MZHKsOv48ejSSVdUqKqfufLM5vVwcOC6Ddu3 q2GQvTvgar3CfbXJV5zoIks8f1mRLkte0Bi1JZ0JheYsYgEiaPny45Z4KUrZEOodyQjqUz2pEE92oeKWju3RVlzE+2xfEwCS0pVugZ7u3Wt9rfkGssrR2Dvc > On 08 April 2020 at 11:39 Ronald Fischer wrote: > What I want to report can be a bugh either in the documentaion > (man-page) or in the implementation, depending on which one is correct. > > I am running Zsh 5.5.1 for Cygwin (which seems to be the most recent one available for this platform). > > In the man-page, it says in the chapter about single-quoting a string: > > A literal ' character can be included in the string by using the \' escape. > > Taken this at face value, the following should work: > > echo 'a$b\'c' I believe you're looking at the documentation for the $'...' style of quoting. So you can do echo $'a$b\'c' This style allows a bit more interpolation than ordinary single quotes. pws