Re: svn commit: r268745 - in head/usr.bin: . timeout
--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--
討論串 (同標題文章)
完整討論串 (本文為第 4 之 11 篇):