Subject: bin/16594: wc(1) lacks -m in usage message
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ryany@pobox.com>
List: netbsd-bugs
Date: 04/30/2002 19:03:18
>Number: 16594
>Category: bin
>Synopsis: wc(1) lacks -m in usage message
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 30 16:04:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Ryan Younce
>Release: NetBSD 1.5ZC
>Organization:
none
>Environment:
System: NetBSD jay 1.5ZC NetBSD 1.5ZC (JAY) #0: Mon Apr 29 13:02:29 EDT 2002 roo
t@jay:/root/kernel/compile/JAY i386
Architecture: i386
Machine: i386
>Description:
the wc(1) command lacks the -m option (counts characters rather than
bytes) in the usage message. The changes in the submitted patch
reflect the synopsis given in the manual.
>How-To-Repeat:
wc -Z (or some other invalid option)
>Fix:
--- wc.c.orig Wed May 1 18:43:06 2002
+++ wc.c Wed May 1 18:43:37 2002
@@ -340,6 +340,6 @@
usage()
{
- (void)fprintf(stderr, "usage: wc [-clw] [file ...]\n");
+ (void)fprintf(stderr, "usage: wc [-c | -m] [-lw] [file ...]\n");
exit(1);
}
>Release-Note:
>Audit-Trail:
>Unformatted: