From: Clive D.W. Feather (clive@demon.net)
Date: Tue Apr 11 2000 - 13:33:57 CDT
Henry Spencer said:
> On Tue, 11 Apr 2000, Clive D.W. Feather wrote:
> > Except that that's not the correct rule. The correct syntax is ...
> > number : non-zero *digit | ( "0x" | "0X" ) 1*hex | "0" *octal
>
> Is this drawn from an existing spec, or invented?
I don't know a formal spec, but it's what works here:
clive@finch-staff-1> uname -a
FreeBSD finch-staff-1.server.demon.net 3.2-RELEASE FreeBSD 3.2-RELEASE #5:
Mon Jan 24 15:49:31 GMT 2000
root@finch-staff-1.server.demon.net:/usr/src/sys/compile/STAFF i386
clive@finch-staff-1> /sbin/ping 0302.217.0xF022
PING 0302.217.0xF022 (194.217.240.34): 56 data bytes
64 bytes from 194.217.240.34: icmp_seq=0 ttl=251 time=38.566 ms
64 bytes from 194.217.240.34: icmp_seq=1 ttl=251 time=38.219 ms
[...]
It's always worked on every network application I've ever tried. It even
works in a W95 MS-DOS box.
-- Clive D.W. Feather | Work: <clive@demon.net> | Tel: +44 20 8371 1138 Internet Expert | Home: <clive@davros.org> | Fax: +44 20 8371 1037 Demon Internet | WWW: http://www.davros.org | DFax: +44 20 8371 4037 Thus plc | | Mobile: +44 7973 377646