NetBSD-Bugs archive

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

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



The following reply was made to PR bin/42940; it has been noted by GNATS.

From: =?UTF-8?Q?Zafer_Aydo=C4=9Fan?= <zafer%aydogan.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
dholland%eecs.harvard.edu@localhost
Subject: Re: bin/42940: units(1) parsing glitch
Date: Wed, 10 Mar 2010 11:46:29 +0100

 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
 >
 > =C2=A0On 3/10/2010 3:35 AM, Alan Barrett wrote:
 > =C2=A0> The following reply was made to PR bin/42940; it has been noted b=
 y GNATS.
 > =C2=A0>
 > =C2=A0> From: Alan Barrett<apb%cequrux.com@localhost>
 > =C2=A0> To: gnats-bugs%NetBSD.org@localhost
 > =C2=A0> Cc:
 > =C2=A0> Subject: Re: bin/42940: units(1) parsing glitch
 > =C2=A0> Date: Wed, 10 Mar 2010 11:34:00 +0200
 > =C2=A0>
 > =C2=A0> =C2=A0 On Tue, 09 Mar 2010, dholland%eecs.harvard.edu@localhost 
 > wrote:
 > =C2=A0> =C2=A0 > =C2=A0You have: km/h
 > =C2=A0> =C2=A0 > =C2=A0You want: kilometer/hour
 > =C2=A0> =C2=A0 > =C2=A0conformability error
 > =C2=A0> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A010 m
 > =C2=A0> =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00.27777778 m / sec
 > =C2=A0>
 > =C2=A0> =C2=A0 Similarly:
 > =C2=A0>
 > =C2=A0> =C2=A0 You have: 3600 s
 > =C2=A0> =C2=A0 You want: h
 > =C2=A0> =C2=A0 conformability error
 > =C2=A0> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 3600 sec
 > =C2=A0> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 100
 >
 > =C2=A0/usr/share/misc/units.lib doesn't define "h" as a synonym for "hour=
 ". Simply
 > =C2=A0adding it seems to do the right thing:
 >
 > =C2=A0--- /usr/share/misc/units.lib =C2=A0 2007-02-17 03:12:59.000000000 =
 -0600
 > =C2=A0+++ /tmp/units.lib =C2=A0 =C2=A0 =C2=A02010-03-10 03:43:01.00000000=
 0 -0600
 > =C2=A0@@ -98,6 +98,7 @@
 > =C2=A0 min =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  =C2=A0minute
 > =C2=A0 hour =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 60 min
 > =C2=A0 hr =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 hour
 > =C2=A0+h =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 =C2=A0hour
 > =C2=A0 day =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
  =C2=A024 hr
 > =C2=A0 da =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
 =C2=A0 day
 > =C2=A0 week =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
 =A0 7 day
 >
 > =C2=A0$ units -f /tmp/units.lib
 > =C2=A0525 units, 41 prefixes
 >
 > =C2=A0You have: km/h
 > =C2=A0You want: kilometer/hour
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* 1
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/ 1
 > =C2=A0You have: 3600 s
 > =C2=A0You want: h
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* 1
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/ 1
 > =C2=A0You have: hm^2
 > =C2=A0You want: m^2
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0* 10000
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/ 0.0001
 >
 >
 
 should a pullup be reqested for 5.0.2 ?
 


Home | Main Index | Thread Index | Old Index