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

Re: PATCH: unwanted error aborting continued command substitution

On Fri, Apr 17, 2015 at 11:16 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Fri, 17 Apr 2015 06:39:29 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> % $(
>> cmdsubst> [press ctrl-c here]
>> zsh: parse error near `$('
>> I would expect to not get an error message about syntax after pressing
>> ctrl-c.
> I think that means we can handle this case as part of a general tidy up
> rather than agonising over the complexities of the nested parsing ---
> which means we can reap the benefit [sorry, leverage the synergy] of
> breaking out the interrupt flag.  The following looks plausible, though
> the interactions are complicated.
> I believe the fix for only resetting the interrupt flag when resetting
> the local keymap if there actually *was* a local keymap has to be
> correct, but you never quite know if there are scary special cases that
> use things differently...

I didn't think to try this yesterday, but invoking push-input gives
the same error (sorry).

Mikael Magnusson

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