GNU bug report logs - #22495
sleep: doc: mention approximate sleep time

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: 積丹尼 Dan Jacobson <jidanni@HIDDEN>; dated Sat, 30 Jan 2016 21:04:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Changed bug title to 'sleep: doc: mention approximate sleep time' from 'sleep floating point docs' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 22495 <at> debbugs.gnu.org:


Received: (at 22495) by debbugs.gnu.org; 31 Jan 2016 01:05:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 30 20:05:34 2016
Received: from localhost ([127.0.0.1]:42436 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aPgSM-0003Ve-Mz
	for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 20:05:34 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:39595
 helo=homiemail-a62.g.dreamhost.com)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <jidanni@HIDDEN>) id 1aPgSL-0003VW-0e
 for 22495 <at> debbugs.gnu.org; Sat, 30 Jan 2016 20:05:33 -0500
Received: from homiemail-a62.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a62.g.dreamhost.com (Postfix) with ESMTP id 5106063406F;
 Sat, 30 Jan 2016 17:05:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc
 :subject:references:date:message-id:mime-version:content-type;
 s=jidanni.org; bh=IIHaYFDTzyh55+LGnTkYi0PxZMM=; b=jKZaLKiN0W7TN
 X+9xjpqJmEV1+yctmJohh5dCwwbsjOL7cuz6xNNglFqjhXKmdmU2qm5nBEvDADMa
 cNavdLFUXqV0Y+qjoEf24ZpMFmSKlWIK6FuI0U/pF0kGBDxeTqwO1mqQFFyUTszZ
 1q/4Ak16cSlrNr6+YWOTHBzL7irKFI=
Received: from jidanni.org (114-26-46-54.dynamic.hinet.net [114.26.46.54])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a62.g.dreamhost.com (Postfix) with ESMTPSA id 0C18063406C;
 Sat, 30 Jan 2016 17:05:31 -0800 (PST)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#22495: sleep floating point docs
References: <8737tebx0u.fsf@HIDDEN>
Date: Sun, 31 Jan 2016 09:05:28 +0800
Message-ID: <877fiqmucn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22495
Cc: 22495 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

I can't tell if you are like the IRS: go ahead and add cents if you
insist. We'll do the truncation work for you. Or if you are saying that
you will be passing the cents along to the next layer...

I mean you even add additional arguments for him, so who knows the
motivation for all that flexibility.

Nobody can tell if you mean you are just tidying (int()) up his input
before passing it to a deeper layer that only takes ints.

Or if you are now "no longer unnecessarily not allowing the user to pass
floats if he wants. Which will be presented unharmed to the next layer."




Information forwarded to bug-coreutils@HIDDEN:
bug#22495; Package coreutils. Full text available.

Message received at 22495 <at> debbugs.gnu.org:


Received: (at 22495) by debbugs.gnu.org; 30 Jan 2016 22:18:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 30 17:18:34 2016
Received: from localhost ([127.0.0.1]:42353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aPdqk-0007zN-9S
	for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 17:18:34 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44601)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eggert@HIDDEN>) id 1aPdqj-0007zB-D9
 for 22495 <at> debbugs.gnu.org; Sat, 30 Jan 2016 17:18:33 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 72F6B1605E1;
 Sat, 30 Jan 2016 14:18:27 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id ZCxO0Sc-SQQE; Sat, 30 Jan 2016 14:18:26 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id BB3311607DA;
 Sat, 30 Jan 2016 14:18:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id UwnMJR5Jyt4N; Sat, 30 Jan 2016 14:18:26 -0800 (PST)
Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net
 [100.32.155.148])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9B96C1605E1;
 Sat, 30 Jan 2016 14:18:26 -0800 (PST)
Subject: Re: bug#22495: sleep floating point docs
To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= <jidanni@HIDDEN>,
 22495 <at> debbugs.gnu.org
References: <8737tebx0u.fsf@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <56AD36B2.8010406@HIDDEN>
Date: Sat, 30 Jan 2016 14:18:26 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.5.1
MIME-Version: 1.0
In-Reply-To: <8737tebx0u.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 22495
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

=E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson wrote:
> Add:
>
> *GNU sleep will pass that floating number to the system, which might or
>   might not ignore the time indicated after the decimal point.
>
> OR
>
> *GNU sleep will round / truncate? the number into a whole number, befor=
e
> sending it to the system.

"sleep" has always been approximate.  If you issue a "sleep X" command, a=
ll that=20
you can count on is that you sleep for at least X seconds.  We shouldn't=20
document the internals of how "sleep" accomplishes this.  That being said=
, it=20
might make sense to say "sleep is approximate", if we're not saying it al=
ready.




Information forwarded to bug-coreutils@HIDDEN:
bug#22495; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 30 Jan 2016 21:03:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 30 16:03:33 2016
Received: from localhost ([127.0.0.1]:42316 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aPcg9-0006Cr-0r
	for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 16:03:33 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47336)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <jidanni@HIDDEN>) id 1aPcg7-0006Ce-Eo
 for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 16:03:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1aPcg1-0002rH-6R
 for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 16:03:25 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41817)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1aPcg1-0002rD-3W
 for submit <at> debbugs.gnu.org; Sat, 30 Jan 2016 16:03:25 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:38305)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1aPcg0-0006gb-8x
 for bug-coreutils@HIDDEN; Sat, 30 Jan 2016 16:03:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1aPcfw-0002qp-5p
 for bug-coreutils@HIDDEN; Sat, 30 Jan 2016 16:03:24 -0500
Received: from homie.mail.dreamhost.com ([208.97.132.208]:34143
 helo=homiemail-a99.g.dreamhost.com)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jidanni@HIDDEN>) id 1aPcfv-0002qe-Tc
 for bug-coreutils@HIDDEN; Sat, 30 Jan 2016 16:03:20 -0500
Received: from homiemail-a99.g.dreamhost.com (localhost [127.0.0.1])
 by homiemail-a99.g.dreamhost.com (Postfix) with ESMTP id 0C5AEFB006F
 for <bug-coreutils@HIDDEN>; Sat, 30 Jan 2016 13:03:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to
 :subject:date:message-id:mime-version:content-type:
 content-transfer-encoding; s=jidanni.org; bh=tFm8FebJTI7oac58UoR
 QHgAvJdA=; b=TOD+aVG4ILsdNIEariU5lmL8JhxHhJH1PLSquUusxtCnhicVVH2
 N8/wTbwRNTHufGCRPDxPc5G7fzCHp6+AYzMNxyXtNZBnZAwwT9bcnPjjW5bCEz3h
 7PYi0omvF/2yY3jrwnyzmaKmGpkOG57upfTk+abKdWjCVH2pzLewW0ng=
Received: from jidanni.org (114-41-7-194.dynamic.hinet.net [114.41.7.194])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 (Authenticated sender: jidanni@HIDDEN)
 by homiemail-a99.g.dreamhost.com (Postfix) with ESMTPSA id B9B38FB006D
 for <bug-coreutils@HIDDEN>; Sat, 30 Jan 2016 13:03:17 -0800 (PST)
From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson <jidanni@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: sleep floating point docs
Date: Sun, 31 Jan 2016 05:03:13 +0800
Message-ID: <8737tebx0u.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

(info "(coreutils) sleep invocation")

   Historical implementations of =E2=80=98sleep=E2=80=99 have required th=
at NUMBER be an
integer, and only accepted a single argument without a suffix.  However,
GNU =E2=80=98sleep=E2=80=99 accepts arbitrary floating point numbers.  *N=
ote Floating
point::.

Add:

*GNU sleep will pass that floating number to the system, which might or
 might not ignore the time indicated after the decimal point.

OR

*GNU sleep will round / truncate? the number into a whole number, before
sending it to the system.




Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#22495; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.