GNU bug report logs - #9102
"timeout 0 FOO" should timeout right away

Previous Next

Package: coreutils;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Sat, 16 Jul 2011 19:35:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: bug-coreutils <at> gnu.org
Subject: "timeout 0 FOO" should timeout right away
Date: Sat, 16 Jul 2011 12:34:02 -0700
"sleep 0" sleeps for zero seconds, and "timeout 0 FOO"
should timeout in zero seconds as well.  Currently,
it doesn't; it times out in an infinite number of seconds.
I see why, from the internals (alarm (0) is a special
call intended to cancel alarms).  However, 'timeout' shouldn't
be exposing those internals to users; it should behave like
'sleep' does, as that's more consistent.




This bug report was last modified 13 years and 336 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.