From owner-freebsd-current@FreeBSD.ORG Tue Feb 1 20:23:22 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EEB516A4CE for ; Tue, 1 Feb 2005 20:23:22 +0000 (GMT) Received: from zircon.seattle.wa.us (dsl231-043-165.sea1.dsl.speakeasy.net [216.231.43.165]) by mx1.FreeBSD.org (Postfix) with SMTP id 18CF743D39 for ; Tue, 1 Feb 2005 20:23:20 +0000 (GMT) (envelope-from joe@zircon.seattle.wa.us) Received: (qmail 60985 invoked from network); 1 Feb 2005 20:25:16 -0000 Received: from localhost (HELO localhost.zircon.seattle.wa.us) (127.0.0.1) by localhost with SMTP; 1 Feb 2005 20:25:16 -0000 From: Joe Kelsey To: Matthew Dillon In-Reply-To: <200502011935.j11JZaR6095484@apollo.backplane.com> References: <20050201101113.J572@localhost> <200502011935.j11JZaR6095484@apollo.backplane.com> Content-Type: text/plain Date: Tue, 01 Feb 2005 12:25:16 -0800 Message-Id: <1107289516.664.22.camel@zircon.zircon.seattle.wa.us> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: Julian Elischer cc: current@freebsd.org Subject: Re: cynchronised sleep capbilty.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 20:23:22 -0000 On Tue, 2005-02-01 at 11:35 -0800, Matthew Dillon wrote: > :I often find myself wanting to write shell scripts that do: > : > :... > : > :while: > :do > : report results > : sleep -until_next 10 > :done > : > : > :I have inplemented something like this with a crude > :shell function that sleeps up to 9 seconds to get to > > I think integrating such an option into /bin/sleep is an excellent idea. > I have had need for such a feature myself on occassion. Note that ksh93 has an external command interface which allows the addition of user-defined discipline functions and builtin commands which could allow for these sort of options. > :thirdly: is it worth making sleep a shell builtin? > :running sleep(1) every time is a lot of work for what > :we need. > : > :julian > > I don't think this is necessary. sleep is a ksh93 builtin command. ksh93 also now has a new license the OSI Common Public License, instead of the old ATT-specific license. Also, Glenn Fowler and David Korn seem very open to ideas such as this. /Joe