zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: TRAPALRM / TMOUT oddity
Date: Wed, 25 May 2011 20:47:37 -0700	[thread overview]
Message-ID: <110525204737.ZM24434@torch.brasslantern.com> (raw)

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


             reply	other threads:[~2011-05-26  3:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26  3:47 Bart Schaefer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=110525204737.ZM24434@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).