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

Re: Can periodic hook stop rescheduling?



On Tue, 13 Sep 2016 09:18:22 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> I suspect that what's happening is that the interrupt arrives during
> the user input loop such that errflag is already set before the sched
> function even begins running; and it therefore stops immediately on
> entry without executing any actual commands.

That's possible and we possibly need more sand in the box for that
case.  Some places are protected about an irrelevant errflag from the
environment, but timed functions in zle aren't, I don't think.

> The other (not mutually exclusive) option would be to make recurring
> schedules part of the "sched" builtin itself, so that if a recurrent
> event were interrupted it would nevertheless be rescheduled for the
> next interval.

I was thinking of that and sounds like a useful feature anyway.

pws



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