| Summary: | [patch] units(1) The man page and source disagree on the long version of '-H' | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | kd-dev | ||||
| Component: | Books & Articles | Assignee: | Sevan Janiyan <sevan> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | sevan | ||||
| Priority: | --- | Keywords: | patch | ||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| URL: | https://reviews.freebsd.org/D11988 | ||||||
| Attachments: |
|
||||||
A commit references this bug: Author: sevan Date: Sat Aug 12 12:17:38 UTC 2017 New revision: 322424 URL: https://svnweb.freebsd.org/changeset/base/322424 Log: Correct the -H longopt equivillant PR: 209876 Submitted by: <kdrakehp AT zoho DOT com> Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D11988 Changes: head/usr.bin/units/units.1 Committed, thank you for the contribution. A commit references this bug: Author: eadler Date: Sat Mar 3 09:59:05 UTC 2018 New revision: 330314 URL: https://svnweb.freebsd.org/changeset/base/330314 Log: MFC r322424: Correct the -H longopt equivillant PR: 209876 Changes: _U stable/11/ stable/11/usr.bin/units/units.1 |
Created attachment 170847 [details] Patch to correct the long option listed in units.1 units(1) does not accept the '--historyfile' long option as documented in the man page, it accepts the long option '--history'. The man page says these options are "for compatibility with GNU units", and the GNU units documentation agrees with the implemented option '--history'. From the man page -H filename , --historyfile filename Ignored, for compatibility with GNU units. From the source, in the 'longopts' array {"history", required_argument, NULL, 'H'}, How to reproduce: $ units --historyfile filename </dev/null >/dev/null units: unrecognized option `--historyfile' usage: units [-f unitsfile] [-H historyfile] [-UVq] [from-unit to-unit] $ units --history filename </dev/null >/dev/null