svn commit: r268745 - in head/usr.bin: . timeout
Baptiste Daroussin
bapt at FreeBSD.org
Wed Jul 16 10:29:42 UTC 2014
On Wed, Jul 16, 2014 at 12:25:33PM +0200, Jan Beich wrote:
> Baptiste Daroussin <bapt at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20140716/7a59e19e/attachment.sig>
More information about the svn-src-all
mailing list