GNU bug report logs - #7877
sleep takes undocumented hex args

Previous Next

Package: coreutils;

Reported by: jidanni <at> jidanni.org

Date: Fri, 21 Jan 2011 00:09:02 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Jim Meyering <jim <at> meyering.net>
Cc: 7877 <at> debbugs.gnu.org, bernhard.voelker <at> siemens-enterprise.com, jidanni <at> jidanni.org
Subject: bug#7877: sleep takes undocumented hex args
Date: Fri, 21 Jan 2011 07:59:28 -0700
[Message part 1 (text/plain, inline)]
On 01/21/2011 07:57 AM, Jim Meyering wrote:
>> Floating point literals include hex-floats, such as 0x1p1.  Does today's
>> added pre-filtering to reject 0x1 accidentally also reject hex-float
>> literals?  (It's a bit of a shame that when hex-floats were added that
>> strtod() was altered to accept hex-float literals but as a side effect
>> it also started accepting hexadecimal values without the p[+-]?[0-9]+
>> exponent suffix).
> 
> I see no significant utility in accepting hex floats.  Do you?

No, and rejecting them is fine with me, although our documentation
should be tweaked to be clear that we don't accept _all_ floating point
literals, but just those with optional e[+-]?[0-9]+ suffix.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 14 years and 119 days ago.

Previous Next


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