Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
TRAPALRM / TMOUT oddity
- X-seq: zsh-workers 29373
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: TRAPALRM / TMOUT oddity
- Date: Wed, 25 May 2011 20:47:37 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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