GNU bug report logs - #77535
timeout treats very short durations as `0`

Previous Next

Package: coreutils;

Reported by: Nicolas Boichat <nicolas <at> boichat.ch>

Date: Fri, 4 Apr 2025 16:13:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>
Cc: 77535 <at> debbugs.gnu.org, nicolas <at> boichat.ch, Philip Rowlands <phr+coreutils <at> dimebar.com>
Subject: bug#77535: timeout treats very short durations as `0`
Date: Mon, 7 Apr 2025 01:23:46 -0700
On 2025-04-05 12:41, Pádraig Brady wrote:
> +Note it's best to avoid combining suffixes with hexadecimal arguments,
> +as any @samp{d} will @emph{not} be interpreted as a suffix.

But 'd' is interpreted as a suffix with hexadecimal arguments that have 
an exponent. For example, 'sleep 0x1p0d' sleeps for 1 day. (Also, "Note" 
isn't needed.) Perhaps change to:

A hexadecimal number can precede a @samp{d} suffix only if the number 
has a @samp{p} style exponent, e.g., @samp{0x1p0d} means one day.




This bug report was last modified 42 days ago.

Previous Next


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