Re: git: 81cea61f3b3a - main - bin/sleep: document more non-standard features

From: Mike Karels <mike_at_karels.net>
Date: Tue, 24 May 2022 12:24:23 UTC
On 24 May 2022, at 4:33, Stefan Eßer wrote:

> The branch main has been updated by se:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=81cea61f3b3a17b600364ef19498c01266c9ff1b
>
> commit 81cea61f3b3a17b600364ef19498c01266c9ff1b
> Author:     Stefan Eßer <se@FreeBSD.org>
> AuthorDate: 2022-05-24 09:31:21 +0000
> Commit:     Stefan Eßer <se@FreeBSD.org>
> CommitDate: 2022-05-24 09:31:21 +0000
>
>     bin/sleep: document more non-standard features
>
>     Add support of other time units than seconds to the IMPLEMENTATION
>     NOTES section of the man page.
>
>     MFC after:      1 week
> ---
>  bin/sleep/sleep.1 | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/bin/sleep/sleep.1 b/bin/sleep/sleep.1
> index 85086acec5ad..f7da87152f99 100644
> --- a/bin/sleep/sleep.1
> +++ b/bin/sleep/sleep.1
> @@ -70,9 +70,10 @@ signal is not handled specially by this implementation.
>  .Pp
>  The
>  .Nm
> -command allows and honors a non-integer number of seconds to sleep
> -in any form acceptable by
> -.Xr strtod 3 and it accepts more than one delay value.
> +command supports other time units than seconds,
> +honors a non-integer number of time units to sleep in any form acceptable by
> +.Xr strtod 3 ,
> +and accepts more than one delay value.
>  These are non-portable extensions, but they have also been implemented
>  in GNU sh-utils since version 2.0a (released in 2002).
>  .Sh EXIT STATUS

Is there a reason you didn’t list the time units that are supported?
It would also be good to say how they are specified.

		Mike