zsh-workers
 help / color / mirror / code / Atom feed
* TRAPALRM / TMOUT oddity
@ 2011-05-26  3:47 Bart Schaefer
  2011-05-26  9:14 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2011-05-26  3:47 UTC (permalink / raw)
  To: zsh-workers

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".


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-27  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-26  3:47 TRAPALRM / TMOUT oddity Bart Schaefer
2011-05-26  9:14 ` Peter Stephenson
2011-05-27  1:11   ` Recent curses module changes and " Bart Schaefer
2011-05-27  8:46     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).