In article <o3oabm$h9d$
3...@news.albasani.net>,
<
Joerg.S...@fokus.fraunhofer.de> wrote:
...
>Do you know that sleep 0.5 is a non-portable kshism?
Not really.
>Sleep usually only supports full second arguments.
Not really. It is 2016, you know.
Most major Unixes/toolsets support it (GNU, OSX, etc), although the OSX man
page does say:
The sleep command will accept and honor a non-integer number of
specified seconds (with a `.' character as a decimal point). This is a
non-portable extension, and its use will nearly guarantee that a shell
script will not execute properly on another system.
(With the second sentence in bold).
Like you, I think they're being a bit alarmist.
And yes, that was intended as a bit of a joke, since sleep(1) was
traditionally implemented using alarm(2) and alarm(2) does indeed have only
seconds granularity.
P.S. alarm() is in section 2 on Linux, but on OSX, for some reason, it is in
section 3. IMHO, it *should* be in section 2.
--
If Jeb is Charlie Brown kicking a football-pulled-away, Mitt is a '50s
housewife with a black eye who insists to her friends the roast wasn't
dry.