On Wed, Jul 16, 2014 at 12:25:33PM +0200, Jan Beich wrote: > Baptiste Daroussin <b...@freebsd.org> writes: > > > 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 > > > > it fully passes the GNU timeout regression tests, it is written in a > > mostly > > portable way (only signal parsing is relying on non portable structures) > > --version is not supported unlike GNU timeout.
True because I found it not accurate in our case. > > > +.It Fl -preserve-status > > +Always exist with the same status as > > Exist? What does timeout(1) without the option? The man page lacks > EXIT STATUS section. > > $ timeout 1 sleep 10 > zsh: exit 124 Yes man page could be improved a bit > > $ 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 > > > + switch (*end) { > > + case 's': > > + break; > > + case 'm': > > + ret *= 60; > > + break; > > + case 'h': > > + ret *= 60 * 60; > > + break; > > + case 'd': > > + ret *= 60 * 60 * 24; > > + break; > > These suffixes are not documented. True. regards, Bapt
pgpWMlgqFMXDQ.pgp
Description: PGP signature