zsh-workers
 help / color / mirror / code / Atom feed
From: "Ronald Fischer" <ynnor@mm.st>
To: "Roman Perepelitsa" <roman.perepelitsa@gmail.com>
Cc: "Zsh hackers list" <zsh-workers@zsh.org>
Subject: Re: Bug related to single-quoting a String
Date: Wed, 08 Apr 2020 12:52:39 +0200	[thread overview]
Message-ID: <8c1ba341-4fa6-4307-8a74-d4b1eb75767e@www.fastmail.com> (raw)
In-Reply-To: <CAN=4vMr0fvFpt_iu3wOFraAG=bDzkwszHiySyq9TRT0_30WUFw@mail.gmail.com>

On Wed, Apr 8, 2020, at 12:45, Roman Perepelitsa wrote:
> On Wed, Apr 8, 2020 at 12:40 PM Ronald Fischer <ynnor@mm.st> 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.

However, if I do a

    echo $'a$b\'c'

it does not work either. Same effect!

Ronald

  reply	other threads:[~2020-04-08 10:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-08 10:39 Ronald Fischer
2020-04-08 10:45 ` Roman Perepelitsa
2020-04-08 10:52   ` Ronald Fischer [this message]
2020-04-08 10:45 ` Peter Stephenson
2020-04-08 10:55   ` Ronald Fischer
2020-04-08 11:00     ` Roman Perepelitsa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c1ba341-4fa6-4307-8a74-d4b1eb75767e@www.fastmail.com \
    --to=ynnor@mm.st \
    --cc=roman.perepelitsa@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).