xref: /openbsd/usr.bin/mandoc/apropos.1 (revision dcc50b4b)
1*dcc50b4bSschwarze.\"	$OpenBSD: apropos.1,v 1.45 2020/10/01 22:47:26 schwarze Exp $
28dbd610cSschwarze.\"
30f10154cSschwarze.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
41ab4f06fSschwarze.\" Copyright (c) 2011,2012,2014,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
58dbd610cSschwarze.\"
68dbd610cSschwarze.\" Permission to use, copy, modify, and distribute this software for any
78dbd610cSschwarze.\" purpose with or without fee is hereby granted, provided that the above
88dbd610cSschwarze.\" copyright notice and this permission notice appear in all copies.
98dbd610cSschwarze.\"
108dbd610cSschwarze.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
118dbd610cSschwarze.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
128dbd610cSschwarze.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
138dbd610cSschwarze.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
148dbd610cSschwarze.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
158dbd610cSschwarze.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
168dbd610cSschwarze.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
178dbd610cSschwarze.\"
184d9aa2c3Sians.Dd $Mdocdate: October 1 2020 $
198dbd610cSschwarze.Dt APROPOS 1
208dbd610cSschwarze.Os
218dbd610cSschwarze.Sh NAME
220f10154cSschwarze.Nm apropos ,
230f10154cSschwarze.Nm whatis
2427255502Sschwarze.Nd search manual page databases
258dbd610cSschwarze.Sh SYNOPSIS
268dbd610cSschwarze.Nm
27dc1f54e8Sschwarze.Op Fl afk
2824547daeSschwarze.Op Fl C Ar file
29de7b08f2Sschwarze.Op Fl M Ar path
30de7b08f2Sschwarze.Op Fl m Ar path
318ed73071Sschwarze.Op Fl O Ar outkey
323ba7b54dSschwarze.Op Fl S Ar arch
333ba7b54dSschwarze.Op Fl s Ar section
34b79d4660Sschwarze.Ar expression ...
358dbd610cSschwarze.Sh DESCRIPTION
368dbd610cSschwarzeThe
370f10154cSschwarze.Nm apropos
380f10154cSschwarzeand
390f10154cSschwarze.Nm whatis
400f10154cSschwarzeutilities query manual page databases generated by
41b8f15b54Sschwarze.Xr makewhatis 8 ,
42e0301041Sschwarzeevaluating
43b79d4660Sschwarze.Ar expression
4427255502Sschwarzefor each file in each database.
450f10154cSschwarzeBy default, they display the names, section numbers, and description lines
46e0301041Sschwarzeof all matching manuals.
475a2d92daSschwarze.Pp
485a2d92daSschwarzeBy default,
495a2d92daSschwarze.Nm
505a2d92daSschwarzesearches for
51b8f15b54Sschwarze.Xr makewhatis 8
525a2d92daSschwarzedatabases in the default paths stipulated by
53e0301041Sschwarze.Xr man 1
541ab4f06fSschwarzeand uses case-insensitive extended regular expression matching
555a2d92daSschwarzeover manual names and descriptions
565a2d92daSschwarze.Pq the Li \&Nm No and Li \&Nd No macro keys .
575a2d92daSschwarzeMultiple terms imply pairwise
585a2d92daSschwarze.Fl o .
595a2d92daSschwarze.Pp
600f10154cSschwarze.Nm whatis
610f10154cSschwarzeis a synonym for
620f10154cSschwarze.Nm
630f10154cSschwarze.Fl f .
640f10154cSschwarze.Pp
650f10154cSschwarzeThe options are as follows:
668dbd610cSschwarze.Bl -tag -width Ds
670f10154cSschwarze.It Fl a
680f10154cSschwarzeInstead of showing only the title lines, show the complete manual pages,
690f10154cSschwarzejust like
700f10154cSschwarze.Xr man 1
710f10154cSschwarze.Fl a
720f10154cSschwarzewould.
730f10154cSschwarzeIf the standard output is a terminal device and
740f10154cSschwarze.Fl c
750f10154cSschwarzeis not specified, use
76e886970eSschwarze.Xr less 1
770f10154cSschwarzeto paginate them.
780f10154cSschwarzeIn
790f10154cSschwarze.Fl a
800f10154cSschwarzemode, the options
817232fc26Sschwarze.Fl IKOTW
820f10154cSschwarzedescribed in the
830f10154cSschwarze.Xr mandoc 1
840f10154cSschwarzemanual are also available.
8524547daeSschwarze.It Fl C Ar file
8624547daeSschwarzeSpecify an alternative configuration
8724547daeSschwarze.Ar file
8824547daeSschwarzein
8924547daeSschwarze.Xr man.conf 5
9024547daeSschwarzeformat.
910f10154cSschwarze.It Fl f
920f10154cSschwarzeSearch for all words in
930f10154cSschwarze.Ar expression
940f10154cSschwarzein manual page names only.
951ab4f06fSschwarzeThe search is case-insensitive and matches whole words only.
960f10154cSschwarzeIn this mode, macro keys, comparison operators, and logical operators
970f10154cSschwarzeare not available.
980f10154cSschwarze.It Fl k
990f10154cSschwarzeSupport the full
1000f10154cSschwarze.Ar expression
1010f10154cSschwarzesyntax.
1020f10154cSschwarzeIt is the default for
1030f10154cSschwarze.Nm .
104de7b08f2Sschwarze.It Fl M Ar path
10527255502SschwarzeUse the colon-separated path instead of the default list of paths
10627255502Sschwarzesearched for
107b8f15b54Sschwarze.Xr makewhatis 8
10827255502Sschwarzedatabases.
10927255502SschwarzeInvalid paths, or paths without manual databases, are ignored.
110de7b08f2Sschwarze.It Fl m Ar path
11127255502SschwarzePrepend the colon-separated paths to the list of paths searched
11227255502Sschwarzefor
113b8f15b54Sschwarze.Xr makewhatis 8
11427255502Sschwarzedatabases.
11527255502SschwarzeInvalid paths, or paths without manual databases, are ignored.
1168ed73071Sschwarze.It Fl O Ar outkey
1178ed73071SschwarzeShow the values associated with the key
1188ed73071Sschwarze.Ar outkey
1198ed73071Sschwarzeinstead of the manual descriptions.
1203ba7b54dSschwarze.It Fl S Ar arch
121de7b08f2SschwarzeRestrict the search to pages for the specified
122de7b08f2Sschwarze.Xr machine 1
123de7b08f2Sschwarzearchitecture.
124de7b08f2Sschwarze.Ar arch
1251ab4f06fSschwarzeis case-insensitive.
126de7b08f2SschwarzeBy default, pages for all architectures are shown.
127de7b08f2Sschwarze.It Fl s Ar section
128de7b08f2SschwarzeRestrict the search to the specified section of the manual.
129de7b08f2SschwarzeBy default, pages from all sections are shown.
1308dbd610cSschwarzeSee
1318dbd610cSschwarze.Xr man 1
132de7b08f2Sschwarzefor a listing of sections.
133b79d4660Sschwarze.El
134b79d4660Sschwarze.Pp
13503705782SschwarzeThe options
13603705782Sschwarze.Fl chlw
13703705782Sschwarzeare also supported and are documented in
13803705782Sschwarze.Xr man 1 .
139a39759adSschwarzeThe options
140a39759adSschwarze.Fl fkl
141a39759adSschwarzeare mutually exclusive and override each other.
14203705782Sschwarze.Pp
143b79d4660SschwarzeAn
144b79d4660Sschwarze.Ar expression
145b79d4660Sschwarzeconsists of search terms joined by logical operators
146b79d4660Sschwarze.Fl a
147b79d4660Sschwarze.Pq and
148b79d4660Sschwarzeand
149b79d4660Sschwarze.Fl o
150b79d4660Sschwarze.Pq or .
151b79d4660SschwarzeThe
152b79d4660Sschwarze.Fl a
153b79d4660Sschwarzeoperator has precedence over
154b79d4660Sschwarze.Fl o
155b79d4660Sschwarzeand both are evaluated left-to-right.
156b79d4660Sschwarze.Bl -tag -width Ds
157b79d4660Sschwarze.It \&( Ar expr No \&)
158b79d4660SschwarzeTrue if the subexpression
159b79d4660Sschwarze.Ar expr
160b79d4660Sschwarzeis true.
161b79d4660Sschwarze.It Ar expr1 Fl a Ar expr2
162b79d4660SschwarzeTrue if both
163b79d4660Sschwarze.Ar expr1
164b79d4660Sschwarzeand
165b79d4660Sschwarze.Ar expr2
166b79d4660Sschwarzeare true (logical
167e0301041Sschwarze.Sq and ) .
168b79d4660Sschwarze.It Ar expr1 Oo Fl o Oc Ar expr2
169b79d4660SschwarzeTrue if
170b79d4660Sschwarze.Ar expr1
171b79d4660Sschwarzeand/or
172b79d4660Sschwarze.Ar expr2
173b79d4660Sschwarzeevaluate to true (logical
174e0301041Sschwarze.Sq or ) .
175b79d4660Sschwarze.It Ar term
176b79d4660SschwarzeTrue if
177b79d4660Sschwarze.Ar term
178b79d4660Sschwarzeis satisfied.
179b79d4660SschwarzeThis has syntax
180e0301041Sschwarze.Sm off
181e0301041Sschwarze.Oo
182e0301041Sschwarze.Op Ar key Op , Ar key ...
18385adbebfSbentley.Pq Cm = | \(ti
184e0301041Sschwarze.Oc
185e6b7ae41Sschwarze.Ar val ,
186e6b7ae41Sschwarze.Sm on
187e0301041Sschwarzewhere
188e0301041Sschwarze.Ar key
189b79d4660Sschwarzeis an
190b79d4660Sschwarze.Xr mdoc 7
191b79d4660Sschwarzemacro to query and
192e0301041Sschwarze.Ar val
193b79d4660Sschwarzeis its value.
194386c790fSschwarzeSee
195386c790fSschwarze.Sx Macro Keys
196386c790fSschwarzefor a list of available keys.
197b79d4660SschwarzeOperator
198e0301041Sschwarze.Cm =
199b79d4660Sschwarzeevaluates a substring, while
20085adbebfSbentley.Cm \(ti
2011ab4f06fSschwarzeevaluates a case-sensitive extended regular expression.
202b79d4660Sschwarze.It Fl i Ar term
203990911a9SschwarzeIf
204b79d4660Sschwarze.Ar term
205990911a9Sschwarzeis a regular expression, it
206b79d4660Sschwarzeis evaluated case-insensitively.
207990911a9SschwarzeHas no effect on substring terms.
2088dbd610cSschwarze.El
2098dbd610cSschwarze.Pp
21015957403SschwarzeResults are sorted first according to the section number in ascending
21115957403Sschwarzenumerical order, then by the page name in ascending
2123195e836Sschwarze.Xr ascii 7
2133195e836Sschwarzealphabetical order, case-insensitive.
2143195e836Sschwarze.Pp
2153195e836SschwarzeEach output line is formatted as
2168dbd610cSschwarze.Pp
217e0301041Sschwarze.D1 name[, name...](sec) \- description
2188dbd610cSschwarze.Pp
2198dbd610cSschwarzeWhere
220e0301041Sschwarze.Dq name
221e0301041Sschwarzeis the manual's name,
222e0301041Sschwarze.Dq sec
2233ba7b54dSschwarzeis the manual section, and
224e0301041Sschwarze.Dq description
2258dbd610cSschwarzeis the manual's short description.
2268dbd610cSschwarzeIf an architecture is specified for the manual, it is displayed as
2278dbd610cSschwarze.Pp
228e0301041Sschwarze.D1 name(sec/arch) \- description
2298dbd610cSschwarze.Pp
2308dbd610cSschwarzeResulting manuals may be accessed as
2318dbd610cSschwarze.Pp
232e0301041Sschwarze.Dl $ man \-s sec name
2338dbd610cSschwarze.Pp
2348dbd610cSschwarzeIf an architecture is specified in the output, use
2358dbd610cSschwarze.Pp
236e0301041Sschwarze.Dl $ man \-s sec \-S arch name
237386c790fSschwarze.Ss Macro Keys
238386c790fSschwarzeQueries evaluate over a subset of
239386c790fSschwarze.Xr mdoc 7
240386c790fSschwarzemacros indexed by
241b8f15b54Sschwarze.Xr makewhatis 8 .
242386c790fSschwarzeIn addition to the macro keys listed below, the special key
243386c790fSschwarze.Cm any
244386c790fSschwarzemay be used to match any available macro key.
245386c790fSschwarze.Pp
246386c790fSschwarzeNames and description:
247386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
248386c790fSschwarze.It Li \&Nm Ta manual name
249386c790fSschwarze.It Li \&Nd Ta one-line manual description
2508ed73071Sschwarze.It Li arch Ta machine architecture (case-insensitive)
2518ed73071Sschwarze.It Li sec  Ta manual section number
252386c790fSschwarze.El
253386c790fSschwarze.Pp
254386c790fSschwarzeSections and cross references:
255386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
256386c790fSschwarze.It Li \&Sh Ta section header (excluding standard sections)
257386c790fSschwarze.It Li \&Ss Ta subsection header
258386c790fSschwarze.It Li \&Xr Ta cross reference to another manual page
259386c790fSschwarze.It Li \&Rs Ta bibliographic reference
260386c790fSschwarze.El
261386c790fSschwarze.Pp
262386c790fSschwarzeSemantic markup for command line utilities:
263386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
264386c790fSschwarze.It Li \&Fl Ta command line options (flags)
265386c790fSschwarze.It Li \&Cm Ta command modifier
266386c790fSschwarze.It Li \&Ar Ta command argument
267386c790fSschwarze.It Li \&Ic Ta internal or interactive command
268386c790fSschwarze.It Li \&Ev Ta environmental variable
269386c790fSschwarze.It Li \&Pa Ta file system path
270386c790fSschwarze.El
271386c790fSschwarze.Pp
272386c790fSschwarzeSemantic markup for function libraries:
273386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
274386c790fSschwarze.It Li \&Lb Ta function library name
275386c790fSschwarze.It Li \&In Ta include file
276386c790fSschwarze.It Li \&Ft Ta function return type
277386c790fSschwarze.It Li \&Fn Ta function name
278386c790fSschwarze.It Li \&Fa Ta function argument type and name
279386c790fSschwarze.It Li \&Vt Ta variable type
280386c790fSschwarze.It Li \&Va Ta variable name
281386c790fSschwarze.It Li \&Dv Ta defined variable or preprocessor constant
282386c790fSschwarze.It Li \&Er Ta error constant
283386c790fSschwarze.It Li \&Ev Ta environmental variable
284386c790fSschwarze.El
285386c790fSschwarze.Pp
286386c790fSschwarzeVarious semantic markup:
287386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
288386c790fSschwarze.It Li \&An Ta author name
289386c790fSschwarze.It Li \&Lk Ta hyperlink
290386c790fSschwarze.It Li \&Mt Ta Do mailto Dc hyperlink
291386c790fSschwarze.It Li \&Cd Ta kernel configuration declaration
292386c790fSschwarze.It Li \&Ms Ta mathematical symbol
293386c790fSschwarze.It Li \&Tn Ta tradename
294386c790fSschwarze.El
295386c790fSschwarze.Pp
296386c790fSschwarzePhysical markup:
297386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
298386c790fSschwarze.It Li \&Em Ta italic font or underline
299386c790fSschwarze.It Li \&Sy Ta boldface font
300386c790fSschwarze.It Li \&Li Ta typewriter font
301386c790fSschwarze.El
302386c790fSschwarze.Pp
303386c790fSschwarzeText production:
304386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
305386c790fSschwarze.It Li \&St Ta reference to a standards document
306386c790fSschwarze.It Li \&At Ta At No version reference
307386c790fSschwarze.It Li \&Bx Ta Bx No version reference
308386c790fSschwarze.It Li \&Bsx Ta Bsx No version reference
309386c790fSschwarze.It Li \&Nx Ta Nx No version reference
310386c790fSschwarze.It Li \&Fx Ta Fx No version reference
311386c790fSschwarze.It Li \&Ox Ta Ox No version reference
312386c790fSschwarze.It Li \&Dx Ta Dx No version reference
313386c790fSschwarze.El
3146a737689Sschwarze.Pp
3156a737689SschwarzeIn general, macro keys are supposed to yield complete results without
3166a737689Sschwarzeexpecting the user to consider actual macro usage.
3176a737689SschwarzeFor example, results include:
3186a737689Sschwarze.Pp
3196a737689Sschwarze.Bl -tag -width 3n -offset 3n -compact
3206a737689Sschwarze.It Li \&Fa
3216a737689Sschwarzefunction arguments appearing on
3226a737689Sschwarze.Ic \&Fn
3236a737689Sschwarzelines
3246a737689Sschwarze.It Li \&Fn
3251ab4f06fSschwarzefunction names marked up with
3266a737689Sschwarze.Ic \&Fo
3276a737689Sschwarzemacros
3286a737689Sschwarze.It Li \&In
3296a737689Sschwarzeinclude file names marked up with
3306a737689Sschwarze.Ic \&Fd
3316a737689Sschwarzemacros
3326a737689Sschwarze.It Li \&Vt
3336a737689Sschwarzetypes appearing as function return types and
3346a737689Sschwarze.It \&
3356a737689Sschwarzetypes appearing in function arguments in the SYNOPSIS
3366a737689Sschwarze.El
33727255502Sschwarze.Sh ENVIRONMENT
3380f10154cSschwarze.Bl -tag -width MANPAGER
3390f10154cSschwarze.It Ev MANPAGER
3400f10154cSschwarzeAny non-empty value of the environment variable
3410f10154cSschwarze.Ev MANPAGER
342af17c515Sschwarzeis used instead of the standard pagination program,
343c9771691Sschwarze.Xr less 1 ;
344af17c515Sschwarzesee
345de7b08f2Sschwarze.Xr man 1
346af17c515Sschwarzefor details.
347af17c515SschwarzeOnly used if
348af17c515Sschwarze.Fl a
349af17c515Sschwarzeor
350af17c515Sschwarze.Fl l
351af17c515Sschwarzeis specified.
352af17c515Sschwarze.It Ev MANPATH
353af17c515SschwarzeA colon-separated list of directories to search for manual pages; see
354af17c515Sschwarze.Xr man 1
355af17c515Sschwarzefor details.
35627255502SschwarzeOverridden by
357af17c515Sschwarze.Fl M ,
358af17c515Sschwarzeignored if
359af17c515Sschwarze.Fl l
360af17c515Sschwarzeis specified.
3610f10154cSschwarze.It Ev PAGER
3620f10154cSschwarzeSpecifies the pagination program to use when
3630f10154cSschwarze.Ev MANPAGER
3640f10154cSschwarzeis not defined.
3650f10154cSschwarzeIf neither PAGER nor MANPAGER is defined,
366c9771691Sschwarze.Xr less 1
367af17c515Sschwarzeis used.
368af17c515SschwarzeOnly used if
369af17c515Sschwarze.Fl a
370af17c515Sschwarzeor
371af17c515Sschwarze.Fl l
372af17c515Sschwarzeis specified.
37327255502Sschwarze.El
37424547daeSschwarze.Sh FILES
37524547daeSschwarze.Bl -tag -width "/etc/man.conf" -compact
376800aa914Sschwarze.It Pa mandoc.db
37724547daeSschwarzename of the
378b8f15b54Sschwarze.Xr makewhatis 8
37924547daeSschwarzekeyword database
38024547daeSschwarze.It Pa /etc/man.conf
38124547daeSschwarzedefault
38224547daeSschwarze.Xr man 1
38324547daeSschwarzeconfiguration file
38424547daeSschwarze.El
3858dbd610cSschwarze.Sh EXIT STATUS
3868dbd610cSschwarze.Ex -std
3878dbd610cSschwarze.Sh EXAMPLES
3888dbd610cSschwarzeSearch for
389620872beSschwarze.Qq .cf
390620872beSschwarzeas a substring of manual names and descriptions:
391b79d4660Sschwarze.Pp
3921ab4f06fSschwarze.Dl $ apropos =.cf
393b79d4660Sschwarze.Pp
394990911a9SschwarzeInclude matches for
395620872beSschwarze.Qq .cnf
396990911a9Sschwarzeand
397620872beSschwarze.Qq .conf
398620872beSschwarzeas well:
399b79d4660Sschwarze.Pp
4001ab4f06fSschwarze.Dl $ apropos =.cf =.cnf =.conf
401b79d4660Sschwarze.Pp
4021ab4f06fSschwarzeSearch in names and descriptions using a case-sensitive regular expression:
403620872beSschwarze.Pp
40485adbebfSbentley.Dl $ apropos \(aq\(tiset.?[ug]id\(aq
405620872beSschwarze.Pp
4064d9aa2c3SiansSearch for all manual pages in a given section:
4074d9aa2c3Sians.Pp
408*dcc50b4bSschwarze.Dl $ apropos \-s 9 \&.
409*dcc50b4bSschwarze.Pp
410e0301041SschwarzeSearch for manuals in the library section mentioning both the
4118dbd610cSschwarze.Qq optind
412620872beSschwarzeand the
413b79d4660Sschwarze.Qq optarg
414620872beSschwarzevariables:
4158dbd610cSschwarze.Pp
416620872beSschwarze.Dl $ apropos \-s 3 Va=optind \-a Va=optarg
417620872beSschwarze.Pp
418620872beSschwarzeDo exactly the same as calling
4191c32774dSschwarze.Nm whatis
420620872beSschwarzewith the argument
421620872beSschwarze.Qq ssh :
422620872beSschwarze.Pp
42385adbebfSbentley.Dl $ apropos \-\- \-i \(aqNm\(ti[[:<:]]ssh[[:>:]]\(aq
4248ed73071Sschwarze.Pp
4258ed73071SschwarzeThe following two invocations are equivalent:
4268ed73071Sschwarze.Pp
4278ed73071Sschwarze.D1 Li $ apropos -S Ar arch Li -s Ar section expression
4288ed73071Sschwarze.Bd -ragged -offset indent
4298ed73071Sschwarze.Li $ apropos \e( Ar expression Li \e)
43085adbebfSbentley.Li -a arch\(ti^( Ns Ar arch Ns Li |any)$
43185adbebfSbentley.Li -a sec\(ti^ Ns Ar section Ns Li $
4328ed73071Sschwarze.Ed
4338dbd610cSschwarze.Sh SEE ALSO
4348dbd610cSschwarze.Xr man 1 ,
435990911a9Sschwarze.Xr re_format 7 ,
436b8f15b54Sschwarze.Xr makewhatis 8
4371ab4f06fSschwarze.Sh STANDARDS
4381ab4f06fSschwarzeThe
4391ab4f06fSschwarze.Nm
4401ab4f06fSschwarzeutility is compliant with the
4411ab4f06fSschwarze.St -p1003.1-2008
4421ab4f06fSschwarzespecification of
4431ab4f06fSschwarze.Xr man 1
4441ab4f06fSschwarze.Fl k .
4451ab4f06fSschwarze.Pp
4461ab4f06fSschwarzeAll options, the
4471ab4f06fSschwarze.Nm whatis
4481ab4f06fSschwarzecommand, support for logical operators, macro keys,
4491ab4f06fSschwarzesubstring matching, sorting of results, the environment variables
4501ab4f06fSschwarze.Ev MANPAGER
4511ab4f06fSschwarzeand
4521ab4f06fSschwarze.Ev MANPATH ,
4531ab4f06fSschwarzethe database format, and the configuration file
4541ab4f06fSschwarzeare extensions to that specification.
455082ba4baSschwarze.Sh HISTORY
4560f10154cSschwarzePart of the functionality of
4570f10154cSschwarze.Nm whatis
4580f10154cSschwarzewas already provided by the former
4590f10154cSschwarze.Nm manwhere
4600f10154cSschwarzeutility in
4610f10154cSschwarze.Bx 1 .
4620f10154cSschwarzeThe
4638dbd610cSschwarze.Nm
4640f10154cSschwarzeand
4650f10154cSschwarze.Nm whatis
4660f10154cSschwarzeutilities first appeared in
467082ba4baSschwarze.Bx 2 .
4680f10154cSschwarzeThey were rewritten from scratch for
4698ed73071Sschwarze.Ox 5.6 .
470082ba4baSschwarze.Pp
471082ba4baSschwarzeThe
472082ba4baSschwarze.Fl M
473082ba4baSschwarzeoption and the
474082ba4baSschwarze.Ev MANPATH
475082ba4baSschwarzevariable first appeared in
476082ba4baSschwarze.Bx 4.3 ;
477082ba4baSschwarze.Fl m
478082ba4baSschwarzein
479082ba4baSschwarze.Bx 4.3 Reno ;
480082ba4baSschwarze.Fl C
481082ba4baSschwarzein
482082ba4baSschwarze.Bx 4.4 Lite1 ;
483082ba4baSschwarzeand
484082ba4baSschwarze.Fl S
485082ba4baSschwarzeand
486082ba4baSschwarze.Fl s
487082ba4baSschwarzein
4880f10154cSschwarze.Ox 4.5
4890f10154cSschwarzefor
4900f10154cSschwarze.Nm
4910f10154cSschwarzeand in
4920f10154cSschwarze.Ox 5.6
4930f10154cSschwarzefor
4940f10154cSschwarze.Nm whatis .
49580a8b6fbSschwarzeThe options
49680a8b6fbSschwarze.Fl acfhIKklOTWw
49780a8b6fbSschwarzeappeared in
49880a8b6fbSschwarze.Ox 5.7 .
499082ba4baSschwarze.Sh AUTHORS
500082ba4baSschwarze.An -nosplit
501082ba4baSschwarze.An Bill Joy
5020f10154cSschwarzewrote
5030f10154cSschwarze.Nm manwhere
5040f10154cSschwarzein 1977 and the original
505082ba4baSschwarze.Bx
506082ba4baSschwarze.Nm
5070f10154cSschwarzeand
5080f10154cSschwarze.Nm whatis
509082ba4baSschwarzein February 1979.
510082ba4baSschwarzeThe current version was written by
5118ed73071Sschwarze.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
5128ed73071Sschwarzeand
5138ed73071Sschwarze.An Ingo Schwarze Aq Mt schwarze@openbsd.org .
514