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=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 30434 invoked from network); 8 Apr 2020 10:46:18 -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:18 -0000 Received: (qmail 6893 invoked by alias); 8 Apr 2020 10:46:12 -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: 45663 Received: (qmail 4196 invoked by uid 1010); 8 Apr 2020 10:46:12 -0000 X-Qmail-Scanner-Diagnostics: from mail-il1-f176.google.com 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(209.85.166.176):SA:0(-2.0/5.0):. Processed in 2.445966 secs); 08 Apr 2020 10:46:12 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.176 as permitted sender) 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=u5uvXM8WjrHMH3kg0agrxBPFrwFPnlpz3Ses3uQWU8M=; b=Z2WgJaVvMIgQYHcGwLzbbg8uBmvfM6Rrp2y9UhbKnJYMJRrrE3At244Cfv8FbBfm9q 12i6MqtLWd1lLGa1ZCiNYJ/Mwxjzem3rMj17VLTka8Tdm8V8hvQb0deQ27c3H4W5xVY1 e7LqdyGT/7N4tg85327Av0fx0IPQhp6hv5YwFiODQh4mzTscPn0Wh6/E3uxjKmC1+SN9 b/t+kwd5WpSDxIXx/64aKxT5OKtIvxy8049LjX9Hna+lbH8QrFGkxZT4xhH2TqrNvbfi GJ6l1eeSUcad7kUQP9tV6vXDdVlMtGDTTXNatBfKzu98rPXRL6Sq+PGdcRArElhzY/l0 O7kQ== X-Gm-Message-State: AGi0Pubbd8GbZn5UxF4Y78qLeDJ2lK/5MAR7t2T9v9esZL002ufQB3Ge 2ppSrm5Dq2w54CILEAKCh96IwidBoJNVIu7nKJw= X-Google-Smtp-Source: APiQypIWHsQI6/bcAbZV2u1pHhRg3ctvRgvCEnUJ6nJuPhb0XI4Tb98UejNJlwXmkb3H4+Pud6NV/UdxwZRLZH068eg= X-Received: by 2002:a92:8710:: with SMTP id m16mr7059178ild.151.1586342735806; Wed, 08 Apr 2020 03:45:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Wed, 8 Apr 2020 12:45:24 +0200 Message-ID: Subject: Re: Bug related to single-quoting a String To: Ronald Fischer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Wed, Apr 8, 2020 at 12:40 PM 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. Here's the whole paragraph from which this quote is taken: A string enclosed between '$'' and ''' is processed the same way as the string arguments of the print builtin, and the resulting string is considered to be entirely quoted. A literal ''' character can be included in the string by using the '\'' escape. It's talking about $'...'. Both the documentation and the implementation are correct. Roman.