coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] sleep: support subtraction of sleep amounts


From: Eric Blake
Subject: Re: [PATCH] sleep: support subtraction of sleep amounts
Date: Tue, 29 Jul 2014 17:01:23 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/29/2014 04:49 PM, Bernhard Voelker wrote:
> With the attached, sleep supports the subtraction of amounts, e.g.
> 
>   $ sleep -- 1d -10m
> 
> as discussed in http://bugs.gnu.org/7877#67.
> 
> Please keep a special eye on the new test during the review:
> it might be racy, but at least it's a start for discussion.

You may want to improve this usage:

$ src/sleep -- -inf inf
src/sleep: cannot read realtime clock: Invalid argument

to give a nicer message.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]