=================================================================== RCS file: /cvs/mandoc/man.1,v retrieving revision 1.39 retrieving revision 1.42 diff -u -p -r1.39 -r1.42 --- mandoc/man.1 2020/06/17 19:42:32 1.39 +++ mandoc/man.1 2025/01/26 14:43:25 1.42 @@ -1,4 +1,4 @@ -.\" $Id: man.1,v 1.39 2020/06/17 19:42:32 schwarze Exp $ +.\" $Id: man.1,v 1.42 2025/01/26 14:43:25 schwarze Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: June 17 2020 $ +.Dd $Mdocdate: January 26 2025 $ .Dt MAN 1 .Os .Sh NAME @@ -58,7 +58,19 @@ a specific category .Pq Ar section or machine architecture -.Pq Ar subsection . +.Pq Ar subsection , +or searched for with +.Fl k +using +.Xr apropos 1 +search expressions. +The default pager, +.Xr less 1 , +supports the command +.Ic :t +to jump to definitions of specific terms (see +.Dv MANPAGER , +below). .Pp The options are as follows: .Bl -tag -width Ds @@ -74,7 +86,7 @@ See for a description of the contents of this file. .It Fl c Copy the manual page to the standard output instead of using -.Xr more 1 +.Xr less 1 to paginate it. This is done by default if the standard output is not a terminal device. .Pp @@ -275,7 +287,7 @@ is case insensitive. Any non-empty value of the environment variable .Ev MANPAGER is used instead of the standard pagination program, -.Xr more 1 . +.Xr less 1 . If .Xr less 1 is used, the interactive @@ -329,8 +341,7 @@ Specifies the pagination program to use when .Ev MANPAGER is not defined. If neither PAGER nor MANPAGER is defined, -.Xr more 1 -.Fl s +.Xr less 1 is used. .El .Sh FILES @@ -346,6 +357,26 @@ See .Xr mandoc 1 for details. .Sh EXAMPLES +Show all manual pages that mention the +.Ev PWD +environment variable: +.Pp +.Dl $ man -ak Ev=PWD +.Pp +Show the +.Xr ksh 1 +manual and jump to the place where the +.Ic pwd +builtin command is described: +.Pp +.Dl $ man -O tag=pwd ksh +.Pp +Equivalently, use the command +.Ql man ksh , +then type +.Ql :tpwd +and press the return key. +.Pp Format a page for pasting extracts into an email message \(em avoid printing any UTF-8 characters, reduce the width to ease quoting in replies, and remove markup: @@ -392,7 +423,9 @@ option first appeared in and .Fl k in -.Bx 4 ; +.Pa /usr/usb/man +in +.Bx 4.0 ; .Fl M in .Bx 4.3 ;