Re: svn commit: r268745 - in head/usr.bin: . timeout

看板FB_svn作者時間11年前 (2014/07/16 18:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/11 (看更多)
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! _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1JnbIY3w (FB_svn)
討論串 (同標題文章)
文章代碼(AID): #1JnbIY3w (FB_svn)