On Fri, Oct 17, 2025, 15:25 Chet Ramey <[email protected]> wrote:
> On 10/14/25 11:00 PM, Grisha Levit wrote:
> > Calling shell-forward-word in front of an incomplete quoted command
> > substitution causes a parser error to be printed, which is followed
> > by an incomplete redisplay:
> >
> >      $ "$(" ^A\e^F
> >      bash: command substitution: line 2: unexpected EOF while looking
> >      for matching `"'
> >
> > even when the word is single-quoted:
> >
> >      $ '$(' ^A\e^F
> >      bash: command substitution: line 3: unexpected EOF while looking
> >      for matching `''
> >
> > There might be a more general fix but this patch seems to work.
>
> Thanks for the report. I do have a more general fix in mind, but we'll
> start with this case.

Note that in the current devel, if the cursor is placed right after the
X in a line like

    $ X 'Y' 'Z'

shell-forward-word now skips to right after the last quote character.

Reply via email to