bug-coreutils
[Top][All Lists]
Advanced

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

bug#7877: sleep takes undocumented hex args


From: Pádraig Brady
Subject: bug#7877: sleep takes undocumented hex args
Date: Fri, 21 Jan 2011 21:43:35 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 21/01/11 19:28, Jim Meyering wrote:
> Paul Eggert wrote:
>> On 01/21/2011 01:24 AM, Jim Meyering wrote:
>>> My first reflex was to make sleep reject args like 0x... and inf.
>>
>> My reflex was just the opposite: why reject a notation
>> that might be useful?
> 
> I see that at least freebsd's /bin/sleep and the one from sunos 5.11
> work just like the one from coreutils (without my proposed change)
> in accepting e.g., 0x1 and inf.

freeBSD 8.1 treats 0x01 and inf as 0
sunos 5.10 rejects both

> 
> netbsd's accepts 0x1 but not inf.
> openbsd's accepts neither.

cheers,
Pádraig.





reply via email to

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