summaryrefslogtreecommitdiff
path: root/usr.bin/man/man.1
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-03-09 23:20:14 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-03-09 23:20:14 +0000
commit72e6209f26079e9764ce0ca5f34bfd1ee73364cf (patch)
treecb54717dd74517ce0a2f66dd019f20015cb57808 /usr.bin/man/man.1
parent52f82916a3060a084b19fe862de2ddf6625b5e01 (diff)
Add -s section for svr4 compat and -S subsection ala:
man -s 4 -S alpha scc
Diffstat (limited to 'usr.bin/man/man.1')
-rw-r--r--usr.bin/man/man.116
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/man/man.1 b/usr.bin/man/man.1
index 632229bfa3b..8c814903fc2 100644
--- a/usr.bin/man/man.1
+++ b/usr.bin/man/man.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: man.1,v 1.3 1996/06/26 05:37:00 deraadt Exp $
+.\" $OpenBSD: man.1,v 1.4 1998/03/09 23:20:12 millert Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -33,9 +33,9 @@
.\"
.\" @(#)man.1 8.2 (Berkeley) 1/2/94
.\"
-.Dd January 2, 1994
+.Dd March 9, 1998
.Dt MAN 1
-.Os BSD 4
+.Os
.Sh NAME
.Nm man
.Nd display the on-line manual pages
@@ -45,6 +45,8 @@
.Op Fl C Ar file
.Op Fl M Ar path
.Op Fl m Ar path
+.Op Fl s Ar section
+.Op Fl S Ar subsection
.Op Ar section
.Ar name Ar ...
.Sh DESCRIPTION
@@ -112,6 +114,14 @@ The subdirectories to be searched, and their search order,
is specified by the ``_subdir'' line in the
.Nm man
configuration file.
+.It Fl s
+Another way of specifying the section, for compatibility with
+.Nm man
+on other operating systems.
+.It Fl S
+Specifies the machine-dependent subsection. This overrides the
+.Ev MACHINE
+environment variable. See the ``ENVIRONMENT'' section below.
.It Fl w
List the pathnames of the manual pages which
.Nm man