On 2023-05-15 21:42, Dave Howorth wrote:
On Mon, 15 May 2023 11:45:10 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2023-05-15 11:36, Andrei Borzenkov wrote:
On Mon, May 15, 2023 at 12:23 PM Per Jessen <per@opensuse.org> wrote:
GNU sleep supports fractional intervals so "usleep 1" == "sleep 0.000001".
Heh, it does indeed! Pity it doesn't accept the suffixes ms and us too. I guess the fractions work mostly by coincidence? There is no mention in the man page.
Code to parse floating point numbers can hardly appear by coincidence and it is documented in the info page (which is the primary documentation for GNU software). I agree that additional suffixes would be useful.
That the man page doesn't mention this (rather suggest integer seconds), is a bug, IMHO.
The man page says "NUMBER need not be an integer" or "Unlike most implementations that require NUMBER be an integer, here NUMBER may be an arbitrary floating point number" so no suggestion of integers.
Unclear. It says: "Pause for NUMBER seconds." The "NUMBER need not be an integer." is an afterthought written at the end. The "unlike..." part is not in the manual I get. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)