[BUG] precmd not executed after Ctrl-C on some builtin
Vincent Lefevre <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <[email protected]> |
With zsh 5.9 and 5.9.0.3-test (1328291abbb80e90dc4473a4396daffb0e919827),
after interrupting some commands with Ctrl-C, precmd is not executed
before the prompt is displayed:
qaa% mkfifo fifo
qaa% precmd() { echo precmd > /dev/tty }
precmd
qaa% pwd
/home/vinc17
precmd
qaa% pwd >> fifo
^C%
qaa% read
^C%
precmd
qaa% { pwd >> fifo }
^C%
precmd
qaa%
The issue occurs with commands of the form "some_builtin >> fifo".
As seen with "read" (for which the issue does not occur), the issue
is not just that a builtin is blocking.
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)