NetBSD-Bugs archive

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

Re: bin/42940: units(1) parsing glitch



2010/3/10 Dave Huang <khym%azeotrope.org@localhost>:
> The following reply was made to PR bin/42940; it has been noted by GNATS.
>
> From: Dave Huang <khym%azeotrope.org@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:
> Subject: Re: bin/42940: units(1) parsing glitch
> Date: Wed, 10 Mar 2010 03:46:19 -0600
>
> ÂOn 3/10/2010 3:35 AM, Alan Barrett wrote:
> Â> The following reply was made to PR bin/42940; it has been noted by GNATS.
> Â>
> Â> From: Alan Barrett<apb%cequrux.com@localhost>
> Â> To: gnats-bugs%NetBSD.org@localhost
> Â> Cc:
> Â> Subject: Re: bin/42940: units(1) parsing glitch
> Â> Date: Wed, 10 Mar 2010 11:34:00 +0200
> Â>
> Â> Â On Tue, 09 Mar 2010, dholland%eecs.harvard.edu@localhost wrote:
> Â> Â > ÂYou have: km/h
> Â> Â > ÂYou want: kilometer/hour
> Â> Â > Âconformability error
> Â> Â > Â Â Â Â Â10 m
> Â> Â > Â Â Â Â Â0.27777778 m / sec
> Â>
> Â> Â Similarly:
> Â>
> Â> Â You have: 3600 s
> Â> Â You want: h
> Â> Â conformability error
> Â> Â Â Â Â Â 3600 sec
> Â> Â Â Â Â Â 100
>
> Â/usr/share/misc/units.lib doesn't define "h" as a synonym for "hour". Simply
> Âadding it seems to do the right thing:
>
> Â--- /usr/share/misc/units.lib  2007-02-17 03:12:59.000000000 -0600
> Â+++ /tmp/units.lib   Â2010-03-10 03:43:01.000000000 -0600
> Â@@ -98,6 +98,7 @@
>  min          Âminute
>  hour          60 min
>  hr           hour
> Â+h           Âhour
>  day          Â24 hr
>  da           day
>  week          7 day
>
> Â$ units -f /tmp/units.lib
> Â525 units, 41 prefixes
>
> ÂYou have: km/h
> ÂYou want: kilometer/hour
> Â Â Â Â Â* 1
> Â Â Â Â Â/ 1
> ÂYou have: 3600 s
> ÂYou want: h
> Â Â Â Â Â* 1
> Â Â Â Â Â/ 1
> ÂYou have: hm^2
> ÂYou want: m^2
> Â Â Â Â Â* 10000
> Â Â Â Â Â/ 0.0001
>
>

should a pullup be reqested for 5.0.2 ?


Home | Main Index | Thread Index | Old Index