From owner-svn-src-all@FreeBSD.ORG Mon Aug 2 10:59:24 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D82B1065673; Mon, 2 Aug 2010 10:59:24 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3C15D8FC08; Mon, 2 Aug 2010 10:59:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o72AxOGl000324; Mon, 2 Aug 2010 10:59:24 GMT (envelope-from kib@svn.freebsd.org) Received: (from kib@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o72AxO1I000322; Mon, 2 Aug 2010 10:59:24 GMT (envelope-from kib@svn.freebsd.org) Message-Id: <201008021059.o72AxO1I000322@svn.freebsd.org> From: Konstantin Belousov Date: Mon, 2 Aug 2010 10:59:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210750 - head/bin/sleep X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 02 Aug 2010 10:59:24 -0000 Author: kib Date: Mon Aug 2 10:59:23 2010 New Revision: 210750 URL: http://svn.freebsd.org/changeset/base/210750 Log: Document the new argument parser for sleep(1) and SIGINFO behaviour. Remove higlight for the unportability notice. MFC after: 3 weeks Modified: head/bin/sleep/sleep.1 Modified: head/bin/sleep/sleep.1 ============================================================================== --- head/bin/sleep/sleep.1 Mon Aug 2 10:57:56 2010 (r210749) +++ head/bin/sleep/sleep.1 Mon Aug 2 10:59:23 2010 (r210750) @@ -51,6 +51,10 @@ suspends execution for a minimum of If the .Nm command receives a signal, it takes the standard action. +When the +.Dv SIGINFO +signal is received, the estimate of the amount of seconds left to +sleep is printed on the standard output. .Sh IMPLEMENTATION NOTES The .Dv SIGALRM @@ -58,14 +62,11 @@ signal is not handled specially by this .Pp The .Nm -command will accept and honor a non-integer number of specified seconds -(with a -.Ql .\& -character as a decimal point). -.Bf Sy +command allows and honors a non-integer number of seconds to sleep +in any form acceptable by +.Xr strtod 3 . This is a non-portable extension, and its use will nearly guarantee that a shell script will not execute properly on another system. -.Ef .Sh EXIT STATUS .Ex -std .Sh EXAMPLES