From owner-svn-src-all@FreeBSD.ORG Wed Jul 16 10:29:41 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 C9628131; Wed, 16 Jul 2014 10:29:41 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12C3E27B2; Wed, 16 Jul 2014 10:29:40 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id a1so681327wgh.35 for ; Wed, 16 Jul 2014 03:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=7DxGNYRWO5v1YnQTjWRTUduQ/ssbruJ869YdbKTXf2U=; b=NAPc8VqcjCZVxGmk0cKqYSKKXv1ZoBziLa/eIzPCYb23Urv7zbHzGvHHUzSvL0sfDD fSfdJWn6lIPY8bWvF0oNkJYV65U0EoQykzpfqOjZOqmx1kGor3heJ1Ao1BCcnIaQsEtu WD8LOfuN86AsSm0ABu0zWqamjwip7GKXDwwYzXuMgQnWY57673cVQrMSG/7sldNbM1Cs JxXXHKNzvRKh7eHnUVa2lZHxqtvjzDCFp8MLh/lT0QBSqHJyo9VrUOJ6wWC7B8iLrRQ0 q4RwC4aRcE3t7cH+OMPUtzEk3a4du1EnH+nIZWM9l+JskHZJeA/VVVzisnReiiPQ2elf vUXA== X-Received: by 10.194.6.10 with SMTP id w10mr34829651wjw.51.1405506577613; Wed, 16 Jul 2014 03:29:37 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id d4sm7398655wiy.13.2014.07.16.03.29.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jul 2014 03:29:36 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 16 Jul 2014 12:29:34 +0200 From: Baptiste Daroussin To: Jan Beich Subject: Re: svn commit: r268745 - in head/usr.bin: . timeout Message-ID: <20140716102933.GG48710@ivaldir.etoilebsd.net> References: <201407160955.s6G9taro084054@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tT3UgwmDxwvOMqfu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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:29:42 -0000 --tT3UgwmDxwvOMqfu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 16, 2014 at 12:25:33PM +0200, Jan Beich wrote: > Baptiste Daroussin writes: >=20 > > 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 > > =20 > > it fully passes the GNU timeout regression tests, it is written in a = mostly > > portable way (only signal parsing is relying on non portable structur= es) >=20 > --version is not supported unlike GNU timeout. True because I found it not accurate in our case. >=20 > > +.It Fl -preserve-status > > +Always exist with the same status as >=20 > Exist? What does timeout(1) without the option? The man page lacks > EXIT STATUS section. >=20 > $ timeout 1 sleep 10 > zsh: exit 124 Yes man page could be improved a bit >=20 > $ 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 >=20 > > + switch (*end) { > > + case 's': > > + break; > > + case 'm': > > + ret *=3D 60; > > + break; > > + case 'h': > > + ret *=3D 60 * 60; > > + break; > > + case 'd': > > + ret *=3D 60 * 60 * 24; > > + break; >=20 > These suffixes are not documented. True. regards, Bapt --tT3UgwmDxwvOMqfu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlPGVA0ACgkQ8kTtMUmk6EwYGwCgkEPRg9XDzDgjfB8IpBR46F0n OvwAnjit6XWoANDpWcuNHEpSHvu1BcHE =DvBy -----END PGP SIGNATURE----- --tT3UgwmDxwvOMqfu--