From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: a='foo"'; echo ${a/foo"/"bar} outputs bar
Date: Tue, 17 Oct 2023 09:44:44 -0700 [thread overview]
Message-ID: <CAH+w=7YruuoTPVnJv+40+XLfapH4+oEhRsTKTMY9cxNNNwfyXg@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7a-_V27oJyxa9ZVQof8217xUCNOXXwPARqNxh4tiyM-1g@mail.gmail.com>
On Tue, Oct 3, 2023 at 9:20 PM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> I had an idea here that seems to work: while reading single-quoted
> strings in gettokstr(), recognize when we're in a pattern and replace
> all / with \/. That only fixes '...' and $'...' at best, though.
>
> So, back to workers/51202, my original reply on this thread: handle
> double-quotes in paramsubst(), leaving single quotes to gettokstr().
Any comments on this? Worth pushing?
prev parent reply other threads:[~2023-10-17 16:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-11 17:50 Stephane Chazelas
2022-12-13 6:21 ` Bart Schaefer
2023-08-07 2:36 ` Bart Schaefer
2023-10-04 4:20 ` Bart Schaefer
2023-10-17 16:44 ` Bart Schaefer [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='CAH+w=7YruuoTPVnJv+40+XLfapH4+oEhRsTKTMY9cxNNNwfyXg@mail.gmail.com' \
--to=schaefer@brasslantern.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).