From owner-freebsd-bugs Wed Jul 23 23:40:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA12550 for bugs-outgoing; Wed, 23 Jul 1997 23:40:02 -0700 (PDT) Received: from internet1.mel.cybec.com.au (internet1.mel.cybec.com.au [203.103.154.130]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA12495 for ; Wed, 23 Jul 1997 23:39:49 -0700 (PDT) Received: from tech34 (tech34.mel.cybec.com.au [203.103.154.37]) by internet1.mel.cybec.com.au (post.office MTA v2.0 0813 ID# 0-14031) with ESMTP id AAA301; Thu, 24 Jul 1997 16:41:27 +1000 Message-ID: <33D6F92B.C22DDE54@cybec.com.au> Date: Thu, 24 Jul 1997 16:41:47 +1000 From: TLiddelow@cybec.com.au (Tim Liddelow) X-Mailer: Mozilla 4.01 [en] (WinNT; I) MIME-Version: 1.0 To: Jason Thorpe CC: freebsd-bugs@hub.freebsd.org Subject: Re: bin/4154: wish /bin/sleep handled fractions of a second. X-Priority: 3 (Normal) References: <199707240610.XAA11247@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jason Thorpe wrote: > > > This has been implemented in OpenBSD. The crucial portion of the > > code I submitted there has been pasted below. It would be nice to > > get such an extension adopted more widely in *BSD, so portable > scripts > > could use it. > > How on earth can you call such a script "portable" if it clearly uses > something not specified in POSIX? > Pedantic, man! The new /bin/sleep will handle BOTH formats. It handles a superset of the POSIX spec. No, it doesn't conform EXACTLY to the POSIX spec but it _will_ handle all cases that the original /bin/sleep did. I agree that of course it won't barf and be an error case now if you include a '.' but I still think that's a good thing. I think it's a good suggestion. Cheers Tim.