[Bug 287668] [patch] usr.bin/units: malformed definitions for some constants in definitions.units

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 19 Jun 2025 23:03:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287668

            Bug ID: 287668
           Summary: [patch] usr.bin/units: malformed definitions for some
                    constants in definitions.units
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: bill.fraser@gmail.com

Created attachment 261421
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261421&action=edit
definitions.units patch

The constants electronmass, protonmass, and neutronmass are missing the 'e' in
their scientific notation. The units program doesn't really do much validation
either, so attempting to use them produces totally nonsensical results:

$ units '1 electronmass' 'kg'
        * 282.39085
        / 0.0035411913

Electrons are obviously not that heavy :)

-- 
You are receiving this mail because:
You are the assignee for the bug.