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


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

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 77535 <at> debbugs.gnu.org, nicolas <at> boichat.ch,
 Philip Rowlands <phr+coreutils <at> dimebar.com>
Subject: Re: bug#77535: timeout treats very short durations as `0`
Date: Mon, 7 Apr 2025 18:45:22 +0100
On 07/04/2025 09:23, Paul Eggert wrote:
> 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.

Cool,

It's better to document a workaround than a restriction.
I pushed the above adjustment in your name.

cheers,
Pádraig




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.