Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: a='foo"'; echo ${a/foo"/"bar} outputs bar



On Tue, Oct 3, 2023 at 9:20 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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?




Messages sorted by: Reverse Date, Date, Thread, Author