Subject: bin/16644: cut(1) usage missing -b semantics
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ryany@pobox.com>
List: netbsd-bugs
Date: 05/03/2002 18:27:16
>Number:         16644
>Category:       bin
>Synopsis:       cut(1) usage missing -b semantics
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 03 15:28:00 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: Fri May 3 19:00:42 EDT 2002 root@jay:/root/kernel/compile/JAY i386
Architecture: i386 
Machine: i386
>Description:
	The cut(1) usage message does not detail the -b semantics present
	in the manpage.  The patch below makes the usage echo the manpage's
	synopsis.
>How-To-Repeat:
	cut -(some invalid option)
>Fix:
--- cut.c.orig	Fri May  3 18:21:14 2002
+++ cut.c	Fri May  3 18:22:11 2002
@@ -284,6 +284,8 @@
 usage()
 {
 	(void)fprintf(stderr,
-"usage:\tcut -c list [file1 ...]\n\tcut -f list [-s] [-d delim] [file ...]\n");
+"usage:\tcut -b list [-n] [file ...]\n\
+\tcut -c list [file ...]\n\
+\tcut -f list [-d delim] [-s] [file ...]\n");
 	exit(1);
 }
>Release-Note:
>Audit-Trail:
>Unformatted: