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

TRAPALRM / TMOUT oddity



Consider:

% TRAPALRM() { print TIME IS UP; exit 1 }
% TMOUT=5

You'd expect the shell to exit in 5 seconds, but instead what happens is
that TIME IS UP is printed every 5 seconds until any key is pressed, at
which point the shell exits.

The same behavior occurs when using "trap".



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