NetBSD-Bugs archive

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

bin/42940: units(1) parsing glitch

>Number:         42940
>Category:       bin
>Synopsis:       units(1) parsing glitch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 09 20:30:00 +0000 2010
>Originator:     David A. Holland
>Release:        NetBSD 5.99.22 (20091208)
System: NetBSD tanaqui 5.99.22 NetBSD 5.99.22 (TANAQUI) #31: Tue Dec 8 22:53:35 
EST 2009 dholland@tanaqui:/usr/src/sys/arch/i386/compile/TANAQUI i386
Architecture: i386
Machine: i386

units interprets "km/h" as "kilometers per hecto-nothing", which is
both not very useful (as "km/h" is a standard abbreviation) and also
contrary to the usual practice in which SI prefixes are not allowed to
be freestanding.


% units
524 units, 41 prefixes

You have: km/h
You want: meter   
        * 10
        / 0.1
You have: km/h     
You want: kilometer/hour
conformability error
        10 m
        0.27777778 m / sec


dunno, have to go squint at the parser sometime

Home | Main Index | Thread Index | Old Index