=================================================================== RCS file: /cvs/mandoc/man.1,v retrieving revision 1.36 retrieving revision 1.42 diff -u -p -r1.36 -r1.42 --- mandoc/man.1 2020/01/07 11:16:33 1.36 +++ mandoc/man.1 2025/01/26 14:43:25 1.42 @@ -1,9 +1,9 @@ -.\" $Id: man.1,v 1.36 2020/01/07 11:16:33 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. .\" Copyright (c) 2003, 2007, 2008, 2014 Jason McIntyre -.\" Copyright (c) 2010, 2011, 2014-2018 Ingo Schwarze +.\" Copyright (c) 2010, 2011, 2014-2020 Ingo Schwarze .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -31,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: January 7 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 @@ -167,6 +179,7 @@ architecture whilst using another. This option overrides the .Ev MACHINE environment variable. +.Tg s .It Oo Fl s Oc Ar section Only select manuals from the specified .Ar section . @@ -199,6 +212,9 @@ Kernel internals. .It Fl w List the pathnames of all matching manual pages instead of displaying any of them. +If no +.Ar name +is given, list the directories that would be searched. .El .Pp The options @@ -271,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 @@ -325,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 @@ -342,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: @@ -378,7 +413,7 @@ are extensions to that specification. A .Nm command first appeared in -.At v3 . +.At v2 . .Pp The .Fl w @@ -388,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 ;