On Mon, 15 May 2023 18:01:18 -0400, Patrick Shanahan <paka@opensuse.org> wrote:
* Carlos E.R. <robin.listas@gmx.es> [05-15-23 16:31]:
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.
disavowing integer is not mentioned in the man page on my tumbleweed system and attempting to use a non integer provides the statement that "microseconds" are required.
We all must be in different universes. On my openSUSE Tumbleweed 20230514 system, here are two complete sections from man sleep(1): SYNOPSIS sleep NUMBER[SUFFIX]... sleep OPTION DESCRIPTION Pause for NUMBER seconds. SUFFIX may be 's' for seconds (the default), 'm' for minutes, 'h' for hours or 'd' for days. NUMBER need not be an integer. Given two or more arguments, pause for the amount of time specified by the sum of their values. --help display this help and exit --version output version information and exit [...] And the footer: GNU coreutils 9.3 April 2023 SLEEP(1) Sleep works, and outputs no messages, for either 0.03 or 0.9 as the argument. -- Robert Webb