From owner-svn-src-all@FreeBSD.ORG Wed Jul 16 10:26:13 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C3171DA3 for ; Wed, 16 Jul 2014 10:26:13 +0000 (UTC) Received: from vfemail.net (nine.vfemail.net [108.76.175.9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C7372791 for ; Wed, 16 Jul 2014 10:26:13 +0000 (UTC) Received: (qmail 14133 invoked by uid 89); 16 Jul 2014 10:26:03 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 16 Jul 2014 10:26:03 -0000 Received: (qmail 14051 invoked by uid 89); 16 Jul 2014 10:25:45 -0000 Received: by simscan 1.3.1 ppid: 14043, pid: 14046, t: 0.1001s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 16 Jul 2014 10:25:45 -0000 Received: (qmail 29402 invoked by uid 89); 16 Jul 2014 10:25:45 -0000 Received: by simscan 1.4.0 ppid: 29375, pid: 29397, t: 1.0677s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by 172.16.100.62 with ESMTPA; 16 Jul 2014 10:25:44 -0000 From: Jan Beich To: Baptiste Daroussin Subject: Re: svn commit: r268745 - in head/usr.bin: . timeout References: <201407160955.s6G9taro084054@svn.freebsd.org> Date: Wed, 16 Jul 2014 12:25:33 +0200 In-Reply-To: <201407160955.s6G9taro084054@svn.freebsd.org> (Baptiste Daroussin's message of "Wed, 16 Jul 2014 09:55:36 +0000 (UTC)") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 10:26:13 -0000 Baptiste Daroussin 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!