Date: Wed, 16 Jul 2014 12:25:33 +0200 From: Jan Beich <jbeich@vfemail.net> To: Baptiste Daroussin <bapt@FreeBSD.org> 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: <mwc9-61nm-wny@vfemail.net> In-Reply-To: <201407160955.s6G9taro084054@svn.freebsd.org> (Baptiste Daroussin's message of "Wed, 16 Jul 2014 09:55:36 %2B0000 (UTC)") References: <201407160955.s6G9taro084054@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin <bapt@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. > +.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 $ timeout --preserve-status 1 sleep 10 zsh: exit 143 > + 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. ------------------------------------------------- VFEmail.net - http://www.vfemail.net ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?mwc9-61nm-wny>