On Sun, 9 Feb 2020 at 09:34, Stephane Chazelas wrote: > For context, that's still about trying to answer that "how to > add a timeout to `vared`" question at > > https://unix.stackexchange.com/questions/565718/zsh-timeout-for-vared-builtin > > I was thinking: vared uses zle, zle is fully programmable, that > shouldn't be too difficult. But so far I've not been able to do > it without a subshell and I ran in a few unexpected behaviours. > > In: > > zsh -c 'vared -c foo; echo $? $foo' > > If I press ^G (send-break widget), that exits the shell (with > status 0), not just "vared". > I've had a somewhat similar problem: https://www.zsh.org/mla/workers/2019/msg00721.html -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zinit Blog: http://zdharma.org