Re: [hackers] [sbase][PATCH] Improvements to sleep(1):

From: Mattias Andrée <maandree_AT_kth.se>
Date: Sat, 26 Mar 2016 19:42:27 +0100

On Sat, 26 Mar 2016 18:35:44 +0000
Dimitris Papastamos <sin_AT_2f30.org> wrote:

> On Sat, Mar 26, 2016 at 06:31:57PM +0100, Mattias Andrée
> wrote:
> > - Add support for floating pointer numbers,
> > which you will find in other implementations.
> >
> > - Add support for suffixes [s|m|h|d], as
> > found in GNU sleep, which is very useful.
>
> I find these features overkill for sleep(1).
>

I regularly use the suffix feature to sleep
for very long times. I find that it is much
better than using at.

Floating point numbers may be a bit unnecessary,
but it is supported in at least FreeBSD and GNU.
It might also be useful for some scripts, like
init scripts. And I think it is better than
implementing usleep(1).
At the very least we should allow using floating
points even if we truncate it to integers.

Received on Sat Mar 26 2016 - 19:42:27 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 26 2016 - 19:48:14 CET