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: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/42940: units(1) parsing glitch
Date: Sat, 12 Jun 2021 16:43:11 +0000

 On Wed, Mar 10, 2010 at 07:35:02PM +0000, David Holland wrote:
  >  no, units should not be recognizing freestanding SI prefixes as
  >  dimensionless units.
  >  
  >  'h' is not the only one; it appears all of them that aren't also
  >  defined some other way exhibit this behavior.
 
 Not only that, I discovered today (the hard way) that you can combine
 them:
 
    % units
    537 units, 41 prefixes
 
    You have: hG
    You want: 1
            * 1e+11
            / 1e-11
    You have: myrianano
    You want: 1
            * 1e-05
            / 100000
 
 Normally, "ha" is a standard abbreviation for "hectare", but to units
 it means "hectoatto".
 
 Very broken.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index