Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2022 07:24:23 -0500
From:      Mike Karels <mike@karels.net>
To:        Stefan =?utf-8?q?E=C3=9Fer?= <se@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 81cea61f3b3a - main - bin/sleep: document more non-standard features
Message-ID:  <CFEE5362-D806-479B-9870-3B04313252B8@karels.net>
In-Reply-To: <202205240933.24O9XPv8015486@gitrepo.freebsd.org>
References:  <202205240933.24O9XPv8015486@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 May 2022, at 4:33, Stefan E=C3=9Fer wrote:

> The branch main has been updated by se:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=3D81cea61f3b3a17b600364ef1=
9498c01266c9ff1b
>
> commit 81cea61f3b3a17b600364ef19498c01266c9ff1b
> Author:     Stefan E=C3=9Fer <se@FreeBSD.org>
> AuthorDate: 2022-05-24 09:31:21 +0000
> Commit:     Stefan E=C3=9Fer <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 implementati=
on.
>  .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 accepta=
ble 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=E2=80=99t list the time units that are support=
ed?
It would also be good to say how they are specified.

		Mike



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CFEE5362-D806-479B-9870-3B04313252B8>