Subject: misc/1194: manpage fixes
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
List: netbsd-bugs
Date: 07/04/1995 11:05:07
>Number: 1194
>Category: misc
>Synopsis: manpage fixes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 4 11:05:04 1995
>Originator: Masanobu Saitoh
>Organization:
>Release: -current July 4 1995
>Environment:
System: NetBSD pfault.spa.is.uec.ac.jp 1.0A NetBSD 1.0A (ISYS) #8: Thu May 11 10:42:28 JST 1995 saitoh@pfault.spa.is.uec.ac.jp:/var/local/sup950505/src/sys/arch/i386/compile/ISYS i386
>Description:
getopt(1), skeyinit(1), lprm(1), pr(1), printf(1), vi(1) and chpass(1)
have small bugs.
===============================================================
getopt(1):
".B \-\-" isn't displayed. For example:
* to delimit the end of the options. Getopt will place in the arguments at
* the end of the options, or recognize it if used explicitly. The shell
* arguments ($1 $2 ...) are reset so that each option is preceded by a and
* ^^^
* in its own shell argument; each option argument is also in its own shell
* argument.
===============================================================
printf(1):
In "eE" option, ".`[-]d.ddd Ns \(+-dd\'" isn't displayed.
===============================================================
lprm(1):
*DIAGNOSTICS
* ``Permission denied" if the user tries to remove files other than his
^^ ^^
===============================================================
>How-To-Repeat:
>Fix:
Apply this patch.
--- getopt.1.org Tue Jul 4 22:53:23 1995
+++ getopt.1 Tue Jul 4 23:17:42 1995
@@ -6,7 +6,7 @@
.Nm getopt
.Nd parse command options
.Sh SYNOPSIS
-.Nm set \-\- \`getopt optstring $*\`
+set \-\- \`getopt optstring $*\`
.Sh DESCRIPTION
.Nm Getopt
is used to break up options in command lines for easy parsing by
@@ -19,17 +19,17 @@
is expected to have an argument which may or may not be
separated from it by white space.
The special option
-.B \-\-
+.Dq \-\-
is used to delimit the end of the options.
.Nm Getopt
will place
-.B \-\-
+.Dq \-\-
in the arguments at the end of the options,
or recognize it if used explicitly.
The shell arguments
(\fB$1 $2\fR ...) are reset so that each option is
preceded by a
-.B \-
+.Dq \-
and in its own shell argument;
each option argument is also in its own shell argument.
.Sh EXAMPLE
--- printf.1.org Tue Jul 4 23:12:20 1995
+++ printf.1 Tue Jul 4 23:13:01 1995
@@ -218,7 +218,8 @@
.Ar argument
is printed in the style
.Cm e
-.`[-]d.ddd Ns \(+-dd\'
+`[-]d.ddd
+.Ns \(+-dd\'
where there
is one digit before the decimal point and the number after is equal to
the precision specification for the argument; when the precision is
--- skeyinit.1.org Tue Jul 4 22:56:40 1995
+++ skeyinit.1 Tue Jul 4 22:56:51 1995
@@ -36,6 +36,6 @@
.It Pa /etc/skeykeys
data base of information for S/Key system.
.Sh SEE ALSO
-.Xr skey 1 ,
+.Xr skey 1
.Sh AUTHORS
Phil Karn, Neil M. Haller, John S. Walden, Scott Chasin
--- lprm.1.org Tue Jul 4 23:00:31 1995
+++ lprm.1 Tue Jul 4 23:00:53 1995
@@ -133,7 +133,8 @@
.Xr lpq 1 ,
.Xr lpd 8
.Sh DIAGNOSTICS
-``Permission denied" if the user tries to remove files other than his
+.Dq Permission denied
+if the user tries to remove files other than his
own.
.Sh BUGS
Since there are race conditions possible in the update of the lock file,
--- pr.1.org Tue Jul 4 23:06:48 1995
+++ pr.1 Tue Jul 4 23:07:03 1995
@@ -186,7 +186,6 @@
.Em <newline>
characters.
.It Fl h Ar header
-.Ar header
Use the string
.Ar header
to replace the
--- vi.1.org Tue Jul 4 23:21:16 1995
+++ vi.1 Tue Jul 4 23:21:27 1995
@@ -32,7 +32,7 @@
.\" @(#)vi.1 8.12 (Berkeley) 7/15/94
.\"
.Dd "July 15, 1994"
-.Dt EX/VI 1
+.Dt EX/VI/VIEW 1
.Os
.Sh NAME
.Nm ex, vi, view
--- chpass.1.org Tue Jul 4 23:23:22 1995
+++ chpass.1 Tue Jul 4 23:23:42 1995
@@ -40,7 +40,7 @@
.Nm chpass
.Nd add or change user database information
.Sh SYNOPSIS
-chpass
+.Nm chpass
.Op Fl a Ar list
.Op Fl s Ar newshell
.Op user
>Audit-Trail:
>Unformatted: