From unknown Sat Jun 21 10:45:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22495 <22495@debbugs.gnu.org> To: bug#22495 <22495@debbugs.gnu.org> Subject: Status: sleep: doc: mention approximate sleep time Reply-To: bug#22495 <22495@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:45:36 +0000 retitle 22495 sleep: doc: mention approximate sleep time reassign 22495 coreutils submitter 22495 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 22495 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 16:03:33 2016 Received: (at submit) by debbugs.gnu.org; 30 Jan 2016 21:03:33 +0000 Received: from localhost ([127.0.0.1]:42316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPcg9-0006Cr-0r for submit@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 ) id 1aPcg7-0006Ce-Eo for submit@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 ) id 1aPcg1-0002rH-6R for submit@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 ) id 1aPcg1-0002rD-3W for submit@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 ) id 1aPcg0-0006gb-8x for bug-coreutils@gnu.org; Sat, 30 Jan 2016 16:03:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPcfw-0002qp-5p for bug-coreutils@gnu.org; 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 ) id 1aPcfv-0002qe-Tc for bug-coreutils@gnu.org; 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 ; 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@jidanni.org) by homiemail-a99.g.dreamhost.com (Postfix) with ESMTPSA id B9B38FB006D for ; Sat, 30 Jan 2016 13:03:17 -0800 (PST) From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-coreutils@gnu.org Subject: sleep floating point docs Date: Sun, 31 Jan 2016 05:03:13 +0800 Message-ID: <8737tebx0u.fsf@jidanni.org> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 17:18:34 2016 Received: (at 22495) by debbugs.gnu.org; 30 Jan 2016 22:18:34 +0000 Received: from localhost ([127.0.0.1]:42353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPdqk-0007zN-9S for submit@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 ) id 1aPdqj-0007zB-D9 for 22495@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==?= , 22495@debbugs.gnu.org References: <8737tebx0u.fsf@jidanni.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <56AD36B2.8010406@cs.ucla.edu> 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@jidanni.org> 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 20:05:34 2016 Received: (at 22495) by debbugs.gnu.org; 31 Jan 2016 01:05:34 +0000 Received: from localhost ([127.0.0.1]:42436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aPgSM-0003Ve-Mz for submit@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 ) id 1aPgSL-0003VW-0e for 22495@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@jidanni.org) 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 To: Paul Eggert Subject: Re: bug#22495: sleep floating point docs References: <8737tebx0u.fsf@jidanni.org> Date: Sun, 31 Jan 2016 09:05:28 +0800 Message-ID: <877fiqmucn.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22495 Cc: 22495@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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." From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 25 11:26:23 2018 Received: (at control) by debbugs.gnu.org; 25 Oct 2018 15:26:23 +0000 Received: from localhost ([127.0.0.1]:42587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFhWh-0007oH-18 for submit@debbugs.gnu.org; Thu, 25 Oct 2018 11:26:23 -0400 Received: from mail-io1-f46.google.com ([209.85.166.46]:38757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFhWe-0007o2-M2 for control@debbugs.gnu.org; Thu, 25 Oct 2018 11:26:21 -0400 Received: by mail-io1-f46.google.com with SMTP id q18-v6so5738186iod.5 for ; Thu, 25 Oct 2018 08:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NPe96ElZpCv96KMsf8AP7BjEz5nNunBGpF9DF9L+rVI=; b=YwXq4UcUvKuDj4CWn8+ENxa7Hv6MWQGPP8vSgWpKb2Tw2yl30O3N9Xurr9UjIoR5WU hodFFYXHw0N/4btbn6c3OqHBO4RrX3wREUK85bKLlzYoGL+re6fApIoJSzE0U3M5qfUU 3uSTbuVZpicvBzTp8NgN5jH2l1IjHiW/QK8oSSPZCivRgHcPXn5xkvLzJcn2H58B0Evy WyzBBD/RhAQMJqqezZ6QgHTkEpf/ahlDqEAilzn9hFRuPlDhvRdGz68ZM56Z4Rij+/t5 6wMeUIc0C7jVoyKJ2rURpIyw8FNgFkzBwy1bKaZc+uIgG4QFDlgR+8lM+PjTVZoFe9OU 6c3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NPe96ElZpCv96KMsf8AP7BjEz5nNunBGpF9DF9L+rVI=; b=rh3HOw2b1bgemEb9WXwfHHCfyRb1w8z4rrWV7thIbLQuXbE9e8YlgeotQiM5XA7RCj HHJ1FCkOvqt6c87hLt3p7krIHrZKSZqyD8s4xTYSCKQqyyMUnLOBs1OTYkVtQFOYGUP6 3w+IaL8+3WLd1voGI5XyCKfJDdSap0L5tEv9bGxCAQBjA1OHgfrOTxMvYKq3R/C9oett 2ew0vzdWbyyh3LqJDi1p1KSXpbQ7U0GstoxPhAgaBdwHjMgEWX5/kqocjOBaFbwz7u8P k0vjPYiHWSqYvfLi9Qgmi2gYry3UNYwGoXlJDxzkECTXvfPYVA4GaXMxni1D9E14NtCv 11Ig== X-Gm-Message-State: AGRZ1gLRThI7h6CYWD4g9Xcd7dMSj6rXk1RDVLAPwDHVbXiV+b/bkFFC HGZ39R0p+Y7Lj30Hcuyen9QQ3GlW X-Google-Smtp-Source: AJdET5dfwSHmM5SQ5JiJ82n1yET+NuWjvtksZOTNUh3agyDunHFAimNdmoV7veZRRt+rcuE/OWPGLg== X-Received: by 2002:a6b:8c43:: with SMTP id o64-v6mr1302861iod.217.1540481174595; Thu, 25 Oct 2018 08:26:14 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.gmail.com with ESMTPSA id h9-v6sm2991859iop.88.2018.10.25.08.26.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Oct 2018 08:26:13 -0700 (PDT) Date: Thu, 25 Oct 2018 09:26:10 -0600 From: Assaf Gordon To: control@debbugs.gnu.org Subject: Re: bug#22495: sleep floating point docs Message-ID: <20181025152610.xlhizv3bbcsjwa3b@tomato.housegordon.com> References: <8737tebx0u.fsf@jidanni.org> <56AD36B2.8010406@cs.ucla.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56AD36B2.8010406@cs.ucla.edu> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 22495 wishlist retitle 22495 sleep: doc: mention approximate sleep time stop