Bug 241552 - awk.1 man page incorrect about how to find awk's version
Summary: awk.1 man page incorrect about how to find awk's version
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jason Helfman
Depends on:
Reported: 2019-10-28 20:39 UTC by Andras Farkas
Modified: 2020-02-20 00:45 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Andras Farkas 2019-10-28 20:39:32 UTC
The man page for awk(1) says you can find the version with awk -V
Instead, it seems you find the version with awk --version and awk -V does not work.
I don't have gawk or any other awk installed from ports or packages, so I know this is a bug.

$ awk -V
awk: unknown option -V ignored

awk: no program given

$ awk --version
awk version 20121220 (FreeBSD)
$ uname -a
FreeBSD nyann.tanasinn.mochi 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC  amd64
$ freebsd-version -kru
Comment 1 Andras Farkas 2019-10-28 21:08:27 UTC
-version also works along with --version, by the way
Comment 2 Jason Helfman freebsd_committer 2019-11-22 17:58:12 UTC
I'm looking into this.

awk -d

Will also work. Trying to evaluate the best approach and have pinged another developer that has worked with awk recently.