https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292408
Bug ID: 292408
Summary: synopsis of wc command
Product: Documentation
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Manual Pages
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
(so less priority as available)
The synopsis of wc command is not correct, because c and m flag are not
together usable.
Manual file part...
SYNOPSIS
wc [--libxo] [-Lclmw] [file ...]
...
-c ... This will cancel out any prior usage of the -m option.
...
-m ... This will cancel out any prior usage of the -c option.
This is different to GNU implementation, because GNU wc supports both flags
together. But the problem is only the not clarify SYNOPSIS or the
implementation allow both together
Source code part /usr/bin/wc/wc.c lines 104 / 111:
while ((ch = getopt(argc, argv, "clmwL")) != -1)
switch((char)ch) {
case 'l':
doline = true;
break;
case 'w':
doword = true;
break;
case 'c':
dochar = true;
domulti = false;
break;
case 'L':
dolongline = true;
break;
case 'm':
domulti = true;
dochar = false;
break;
case '?':
default:
usage();
}
--
You are receiving this mail because:
You are on the CC list for the bug.