Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2014 12:29:34 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Jan Beich <jbeich@vfemail.net>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r268745 - in head/usr.bin: . timeout
Message-ID:  <20140716102933.GG48710@ivaldir.etoilebsd.net>
In-Reply-To: <mwc9-61nm-wny@vfemail.net>
References:  <201407160955.s6G9taro084054@svn.freebsd.org> <mwc9-61nm-wny@vfemail.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--tT3UgwmDxwvOMqfu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 16, 2014 at 12:25:33PM +0200, Jan Beich wrote:
> Baptiste Daroussin <bapt@FreeBSD.org> writes:
>=20
> > Author: bapt
> > Date: Wed Jul 16 09:55:36 2014
> > New Revision: 268745
> > URL: http://svnweb.freebsd.org/changeset/base/268745
> >
> > Log:
> >   New BSDL timeout(1) utility compatible with GNU timeout
> >  =20
> >   it fully passes the GNU timeout regression tests, it is written in a =
mostly
> >   portable way (only signal parsing is relying on non portable structur=
es)
>=20
> --version is not supported unlike GNU timeout.

True because I found it not accurate in our case.
>=20
> > +.It Fl -preserve-status
> > +Always exist with the same status as
>=20
> Exist? What does timeout(1) without the option? The man page lacks
> EXIT STATUS section.
>=20
>   $ timeout 1 sleep 10
>   zsh: exit 124

Yes man page could be improved a bit
>=20
>   $ timeout --preserve-status 1 sleep 10
>   zsh: exit 143

signaled program have a exit which is 128 + SIGNAL (this is not documented =
on
GNU version) yes I should document it
>=20
> > +	switch (*end) {
> > +	case 's':
> > +		break;
> > +	case 'm':
> > +		ret *=3D 60;
> > +		break;
> > +	case 'h':
> > +		ret *=3D 60 * 60;
> > +		break;
> > +	case 'd':
> > +		ret *=3D 60 * 60 * 24;
> > +		break;
>=20
> These suffixes are not documented.

True.

regards,
Bapt

--tT3UgwmDxwvOMqfu
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlPGVA0ACgkQ8kTtMUmk6EwYGwCgkEPRg9XDzDgjfB8IpBR46F0n
OvwAnjit6XWoANDpWcuNHEpSHvu1BcHE
=DvBy
-----END PGP SIGNATURE-----

--tT3UgwmDxwvOMqfu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140716102933.GG48710>