* Carlos E. R. <robin.listas@telefonica.net> [05-15-23 22:46]:
On 2023-05-16 02:26, Robert Webb via openSUSE Users wrote:
On Mon, 15 May 2023 18:01:18 -0400, Patrick Shanahan <> wrote:
* Carlos E.R. <> [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." <> wrote:
On 2023-05-15 11:36, Andrei Borzenkov wrote: > On Mon, May 15, 2023 at 12:23 PM Per Jessen <> 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
But the OP is using Leap 15.5.
It says:
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. ...
GNU coreutils 8.32 October 2021 SLEEP(1)
And if I ask for "man 1p sleep", it says:
DESCRIPTION The sleep utility shall suspend execution for at least the integral number of seconds specified by the time operand.
... IEEE/The Open Group 2013 SLEEP(1P)
the *original* question was about "usleep", not sleep. one would expect different discriptions and parameters. sleep in contained in coreutils. indeed! -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc