From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Ronald Fischer <ynnor@mm.st>
Cc: Peter Stephenson <p.w.stephenson@ntlworld.com>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Bug related to single-quoting a String
Date: Wed, 8 Apr 2020 13:00:14 +0200 [thread overview]
Message-ID: <CAN=4vMpXM51S+JBw_ZnkPrKUC7P89f7MRBB1Eau3L-+JPp4E2Q@mail.gmail.com> (raw)
In-Reply-To: <10235ab3-82df-48cf-ad54-fa05e0716d32@www.fastmail.com>
On Wed, Apr 8, 2020 at 12:56 PM Ronald Fischer <ynnor@mm.st> wrote:
>
> > echo $'a$b\'c'
> >
> > This style allows a bit more interpolation than ordinary single quotes.
>
> My mistake: When I tried this first, it did not work, but I see that I had a typing error. I can get it working now.
I just tried it on the same system you are using just to be sure there
wasn't a bug back then. Works fine.
zsh -f <<\END
typeset -p ZSH_VERSION
uname -sm
echo $'a$b\'c'
END
Output:
typeset ZSH_VERSION=5.5.1
CYGWIN_NT-10.0 x86_64
a$b'c
This works the same way as in Bash, by the way.
Roman.
prev parent reply other threads:[~2020-04-08 11:01 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
2020-04-08 10:45 ` Peter Stephenson
2020-04-08 10:55 ` Ronald Fischer
2020-04-08 11:00 ` Roman Perepelitsa [this message]
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='CAN=4vMpXM51S+JBw_ZnkPrKUC7P89f7MRBB1Eau3L-+JPp4E2Q@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=p.w.stephenson@ntlworld.com \
--cc=ynnor@mm.st \
--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).