[Bug 209876] [patch] units(1) The man page and source disagree on the long version of '-H'
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon May 30 23:15:51 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209876
Bug ID: 209876
Summary: [patch] units(1) The man page and source disagree on
the long version of '-H'
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: kdrakehp at zoho.com
Keywords: patch
Created attachment 170847
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170847&action=edit
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list