Subject: bin/26281: missing option in the usage of tset(1)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 07/14/2004 11:59:57
>Number: 26281
>Category: bin
>Synopsis: missing option in the usage of tset(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 14 03:01:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD firefly.localdomain 2.0G NetBSD 2.0G (FIREFLY.MP) #22: Tue Jul 13 19:08:03 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
-E is missing in the usage of tset(1).
>How-To-Repeat:
see usage
>Fix:
* add -E to usage
* use getprogname()
* sort options (manpage)
Index: tset/tset.1
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/tset/tset.1,v
retrieving revision 1.14
diff -u -r1.14 tset.1
--- tset/tset.1 7 Aug 2003 11:16:49 -0000 1.14
+++ tset/tset.1 13 Jul 2004 20:22:07 -0000
@@ -116,9 +116,6 @@
.It Fl
The terminal type is displayed to the standard output, and the terminal is
not initialized in any way.
-.It Fl e
-Set the erase character to
-.Ar ch .
.It Fl E
Emit the extended termcap entry.
By default the termcap entry is
@@ -126,6 +123,9 @@
entry is to be output.
Using this flag may cause problems with some
shells.
+.It Fl e
+Set the erase character to
+.Ar ch .
.It Fl I
Do not send the terminal or tab initialization strings to the terminal.
.It Fl i
Index: tset/tset.c
===================================================================
RCS file: /cvs/cvsroot/src/usr.bin/tset/tset.c,v
retrieving revision 1.13
diff -u -r1.13 tset.c
--- tset/tset.c 7 Aug 2003 11:16:49 -0000 1.13
+++ tset/tset.c 14 Jul 2004 00:57:39 -0000
@@ -314,6 +314,7 @@
usage()
{
(void)fprintf(stderr,
-"usage: tset [-IQrSs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]\n");
+"usage: %s [-EIQrSs] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]\n",
+ getprogname());
exit(1);
}
>Release-Note:
>Audit-Trail:
>Unformatted: