xref: /openbsd/usr.bin/mandoc/apropos.1 (revision 1ab4f06f)
1*1ab4f06fSschwarze.\"	$OpenBSD: apropos.1,v 1.40 2018/11/19 19:27:29 schwarze Exp $
28dbd610cSschwarze.\"
30f10154cSschwarze.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4*1ab4f06fSschwarze.\" 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.\"
18*1ab4f06fSschwarze.Dd $Mdocdate: November 19 2018 $
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
54*1ab4f06fSschwarzeand 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
760f10154cSschwarze.Xr more 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.
95*1ab4f06fSschwarzeThe 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
125*1ab4f06fSschwarzeis 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
201*1ab4f06fSschwarzeevaluates 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
2103195e836SschwarzeResults are sorted according to the following criteria:
2113195e836Sschwarze.Bl -enum
2123195e836Sschwarze.It
2133195e836SschwarzeThe manpath directory tree the page is found in, according to the
2143195e836Sschwarzeorder specified with
2153195e836Sschwarze.Fl M ,
2163195e836Sschwarze.Fl m ,
2173195e836Sschwarzethe
2183195e836Sschwarze.Ev MANPATH
2193195e836Sschwarzeenvironment variable, the
2203195e836Sschwarze.Xr man.conf 5
2213195e836Sschwarzeconfiguration file, or the default documented in
2223195e836Sschwarze.Xr man.conf 5 .
2233195e836Sschwarze.It
2243195e836SschwarzeThe section number in ascending numerical order.
2253195e836Sschwarze.It
2263195e836SschwarzeThe page name in ascending
2273195e836Sschwarze.Xr ascii 7
2283195e836Sschwarzealphabetical order, case-insensitive.
2293195e836Sschwarze.El
2303195e836Sschwarze.Pp
2313195e836SschwarzeEach output line is formatted as
2328dbd610cSschwarze.Pp
233e0301041Sschwarze.D1 name[, name...](sec) \- description
2348dbd610cSschwarze.Pp
2358dbd610cSschwarzeWhere
236e0301041Sschwarze.Dq name
237e0301041Sschwarzeis the manual's name,
238e0301041Sschwarze.Dq sec
2393ba7b54dSschwarzeis the manual section, and
240e0301041Sschwarze.Dq description
2418dbd610cSschwarzeis the manual's short description.
2428dbd610cSschwarzeIf an architecture is specified for the manual, it is displayed as
2438dbd610cSschwarze.Pp
244e0301041Sschwarze.D1 name(sec/arch) \- description
2458dbd610cSschwarze.Pp
2468dbd610cSschwarzeResulting manuals may be accessed as
2478dbd610cSschwarze.Pp
248e0301041Sschwarze.Dl $ man \-s sec name
2498dbd610cSschwarze.Pp
2508dbd610cSschwarzeIf an architecture is specified in the output, use
2518dbd610cSschwarze.Pp
252e0301041Sschwarze.Dl $ man \-s sec \-S arch name
253386c790fSschwarze.Ss Macro Keys
254386c790fSschwarzeQueries evaluate over a subset of
255386c790fSschwarze.Xr mdoc 7
256386c790fSschwarzemacros indexed by
257b8f15b54Sschwarze.Xr makewhatis 8 .
258386c790fSschwarzeIn addition to the macro keys listed below, the special key
259386c790fSschwarze.Cm any
260386c790fSschwarzemay be used to match any available macro key.
261386c790fSschwarze.Pp
262386c790fSschwarzeNames and description:
263386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
264386c790fSschwarze.It Li \&Nm Ta manual name
265386c790fSschwarze.It Li \&Nd Ta one-line manual description
2668ed73071Sschwarze.It Li arch Ta machine architecture (case-insensitive)
2678ed73071Sschwarze.It Li sec  Ta manual section number
268386c790fSschwarze.El
269386c790fSschwarze.Pp
270386c790fSschwarzeSections and cross references:
271386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
272386c790fSschwarze.It Li \&Sh Ta section header (excluding standard sections)
273386c790fSschwarze.It Li \&Ss Ta subsection header
274386c790fSschwarze.It Li \&Xr Ta cross reference to another manual page
275386c790fSschwarze.It Li \&Rs Ta bibliographic reference
276386c790fSschwarze.El
277386c790fSschwarze.Pp
278386c790fSschwarzeSemantic markup for command line utilities:
279386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
280386c790fSschwarze.It Li \&Fl Ta command line options (flags)
281386c790fSschwarze.It Li \&Cm Ta command modifier
282386c790fSschwarze.It Li \&Ar Ta command argument
283386c790fSschwarze.It Li \&Ic Ta internal or interactive command
284386c790fSschwarze.It Li \&Ev Ta environmental variable
285386c790fSschwarze.It Li \&Pa Ta file system path
286386c790fSschwarze.El
287386c790fSschwarze.Pp
288386c790fSschwarzeSemantic markup for function libraries:
289386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
290386c790fSschwarze.It Li \&Lb Ta function library name
291386c790fSschwarze.It Li \&In Ta include file
292386c790fSschwarze.It Li \&Ft Ta function return type
293386c790fSschwarze.It Li \&Fn Ta function name
294386c790fSschwarze.It Li \&Fa Ta function argument type and name
295386c790fSschwarze.It Li \&Vt Ta variable type
296386c790fSschwarze.It Li \&Va Ta variable name
297386c790fSschwarze.It Li \&Dv Ta defined variable or preprocessor constant
298386c790fSschwarze.It Li \&Er Ta error constant
299386c790fSschwarze.It Li \&Ev Ta environmental variable
300386c790fSschwarze.El
301386c790fSschwarze.Pp
302386c790fSschwarzeVarious semantic markup:
303386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
304386c790fSschwarze.It Li \&An Ta author name
305386c790fSschwarze.It Li \&Lk Ta hyperlink
306386c790fSschwarze.It Li \&Mt Ta Do mailto Dc hyperlink
307386c790fSschwarze.It Li \&Cd Ta kernel configuration declaration
308386c790fSschwarze.It Li \&Ms Ta mathematical symbol
309386c790fSschwarze.It Li \&Tn Ta tradename
310386c790fSschwarze.El
311386c790fSschwarze.Pp
312386c790fSschwarzePhysical markup:
313386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
314386c790fSschwarze.It Li \&Em Ta italic font or underline
315386c790fSschwarze.It Li \&Sy Ta boldface font
316386c790fSschwarze.It Li \&Li Ta typewriter font
317386c790fSschwarze.El
318386c790fSschwarze.Pp
319386c790fSschwarzeText production:
320386c790fSschwarze.Bl -column "xLix" description -offset indent -compact
321386c790fSschwarze.It Li \&St Ta reference to a standards document
322386c790fSschwarze.It Li \&At Ta At No version reference
323386c790fSschwarze.It Li \&Bx Ta Bx No version reference
324386c790fSschwarze.It Li \&Bsx Ta Bsx No version reference
325386c790fSschwarze.It Li \&Nx Ta Nx No version reference
326386c790fSschwarze.It Li \&Fx Ta Fx No version reference
327386c790fSschwarze.It Li \&Ox Ta Ox No version reference
328386c790fSschwarze.It Li \&Dx Ta Dx No version reference
329386c790fSschwarze.El
3306a737689Sschwarze.Pp
3316a737689SschwarzeIn general, macro keys are supposed to yield complete results without
3326a737689Sschwarzeexpecting the user to consider actual macro usage.
3336a737689SschwarzeFor example, results include:
3346a737689Sschwarze.Pp
3356a737689Sschwarze.Bl -tag -width 3n -offset 3n -compact
3366a737689Sschwarze.It Li \&Fa
3376a737689Sschwarzefunction arguments appearing on
3386a737689Sschwarze.Ic \&Fn
3396a737689Sschwarzelines
3406a737689Sschwarze.It Li \&Fn
341*1ab4f06fSschwarzefunction names marked up with
3426a737689Sschwarze.Ic \&Fo
3436a737689Sschwarzemacros
3446a737689Sschwarze.It Li \&In
3456a737689Sschwarzeinclude file names marked up with
3466a737689Sschwarze.Ic \&Fd
3476a737689Sschwarzemacros
3486a737689Sschwarze.It Li \&Vt
3496a737689Sschwarzetypes appearing as function return types and
3506a737689Sschwarze.It \&
3516a737689Sschwarzetypes appearing in function arguments in the SYNOPSIS
3526a737689Sschwarze.El
35327255502Sschwarze.Sh ENVIRONMENT
3540f10154cSschwarze.Bl -tag -width MANPAGER
3550f10154cSschwarze.It Ev MANPAGER
3560f10154cSschwarzeAny non-empty value of the environment variable
3570f10154cSschwarze.Ev MANPAGER
358af17c515Sschwarzeis used instead of the standard pagination program,
359af17c515Sschwarze.Xr more 1 ;
360af17c515Sschwarzesee
361de7b08f2Sschwarze.Xr man 1
362af17c515Sschwarzefor details.
363af17c515SschwarzeOnly used if
364af17c515Sschwarze.Fl a
365af17c515Sschwarzeor
366af17c515Sschwarze.Fl l
367af17c515Sschwarzeis specified.
368af17c515Sschwarze.It Ev MANPATH
369af17c515SschwarzeA colon-separated list of directories to search for manual pages; see
370af17c515Sschwarze.Xr man 1
371af17c515Sschwarzefor details.
37227255502SschwarzeOverridden by
373af17c515Sschwarze.Fl M ,
374af17c515Sschwarzeignored if
375af17c515Sschwarze.Fl l
376af17c515Sschwarzeis specified.
3770f10154cSschwarze.It Ev PAGER
3780f10154cSschwarzeSpecifies the pagination program to use when
3790f10154cSschwarze.Ev MANPAGER
3800f10154cSschwarzeis not defined.
3810f10154cSschwarzeIf neither PAGER nor MANPAGER is defined,
3825778d062Sschwarze.Xr more 1
3835778d062Sschwarze.Fl s
384af17c515Sschwarzeis used.
385af17c515SschwarzeOnly used if
386af17c515Sschwarze.Fl a
387af17c515Sschwarzeor
388af17c515Sschwarze.Fl l
389af17c515Sschwarzeis specified.
39027255502Sschwarze.El
39124547daeSschwarze.Sh FILES
39224547daeSschwarze.Bl -tag -width "/etc/man.conf" -compact
393800aa914Sschwarze.It Pa mandoc.db
39424547daeSschwarzename of the
395b8f15b54Sschwarze.Xr makewhatis 8
39624547daeSschwarzekeyword database
39724547daeSschwarze.It Pa /etc/man.conf
39824547daeSschwarzedefault
39924547daeSschwarze.Xr man 1
40024547daeSschwarzeconfiguration file
40124547daeSschwarze.El
4028dbd610cSschwarze.Sh EXIT STATUS
4038dbd610cSschwarze.Ex -std
4048dbd610cSschwarze.Sh EXAMPLES
4058dbd610cSschwarzeSearch for
406620872beSschwarze.Qq .cf
407620872beSschwarzeas a substring of manual names and descriptions:
408b79d4660Sschwarze.Pp
409*1ab4f06fSschwarze.Dl $ apropos =.cf
410b79d4660Sschwarze.Pp
411990911a9SschwarzeInclude matches for
412620872beSschwarze.Qq .cnf
413990911a9Sschwarzeand
414620872beSschwarze.Qq .conf
415620872beSschwarzeas well:
416b79d4660Sschwarze.Pp
417*1ab4f06fSschwarze.Dl $ apropos =.cf =.cnf =.conf
418b79d4660Sschwarze.Pp
419*1ab4f06fSschwarzeSearch in names and descriptions using a case-sensitive regular expression:
420620872beSschwarze.Pp
42185adbebfSbentley.Dl $ apropos \(aq\(tiset.?[ug]id\(aq
422620872beSschwarze.Pp
423e0301041SschwarzeSearch for manuals in the library section mentioning both the
4248dbd610cSschwarze.Qq optind
425620872beSschwarzeand the
426b79d4660Sschwarze.Qq optarg
427620872beSschwarzevariables:
4288dbd610cSschwarze.Pp
429620872beSschwarze.Dl $ apropos \-s 3 Va=optind \-a Va=optarg
430620872beSschwarze.Pp
431620872beSschwarzeDo exactly the same as calling
4321c32774dSschwarze.Nm whatis
433620872beSschwarzewith the argument
434620872beSschwarze.Qq ssh :
435620872beSschwarze.Pp
43685adbebfSbentley.Dl $ apropos \-\- \-i \(aqNm\(ti[[:<:]]ssh[[:>:]]\(aq
4378ed73071Sschwarze.Pp
4388ed73071SschwarzeThe following two invocations are equivalent:
4398ed73071Sschwarze.Pp
4408ed73071Sschwarze.D1 Li $ apropos -S Ar arch Li -s Ar section expression
4418ed73071Sschwarze.Bd -ragged -offset indent
4428ed73071Sschwarze.Li $ apropos \e( Ar expression Li \e)
44385adbebfSbentley.Li -a arch\(ti^( Ns Ar arch Ns Li |any)$
44485adbebfSbentley.Li -a sec\(ti^ Ns Ar section Ns Li $
4458ed73071Sschwarze.Ed
4468dbd610cSschwarze.Sh SEE ALSO
4478dbd610cSschwarze.Xr man 1 ,
448990911a9Sschwarze.Xr re_format 7 ,
449b8f15b54Sschwarze.Xr makewhatis 8
450*1ab4f06fSschwarze.Sh STANDARDS
451*1ab4f06fSschwarzeThe
452*1ab4f06fSschwarze.Nm
453*1ab4f06fSschwarzeutility is compliant with the
454*1ab4f06fSschwarze.St -p1003.1-2008
455*1ab4f06fSschwarzespecification of
456*1ab4f06fSschwarze.Xr man 1
457*1ab4f06fSschwarze.Fl k .
458*1ab4f06fSschwarze.Pp
459*1ab4f06fSschwarzeAll options, the
460*1ab4f06fSschwarze.Nm whatis
461*1ab4f06fSschwarzecommand, support for logical operators, macro keys,
462*1ab4f06fSschwarzesubstring matching, sorting of results, the environment variables
463*1ab4f06fSschwarze.Ev MANPAGER
464*1ab4f06fSschwarzeand
465*1ab4f06fSschwarze.Ev MANPATH ,
466*1ab4f06fSschwarzethe database format, and the configuration file
467*1ab4f06fSschwarzeare extensions to that specification.
468082ba4baSschwarze.Sh HISTORY
4690f10154cSschwarzePart of the functionality of
4700f10154cSschwarze.Nm whatis
4710f10154cSschwarzewas already provided by the former
4720f10154cSschwarze.Nm manwhere
4730f10154cSschwarzeutility in
4740f10154cSschwarze.Bx 1 .
4750f10154cSschwarzeThe
4768dbd610cSschwarze.Nm
4770f10154cSschwarzeand
4780f10154cSschwarze.Nm whatis
4790f10154cSschwarzeutilities first appeared in
480082ba4baSschwarze.Bx 2 .
4810f10154cSschwarzeThey were rewritten from scratch for
4828ed73071Sschwarze.Ox 5.6 .
483082ba4baSschwarze.Pp
484082ba4baSschwarzeThe
485082ba4baSschwarze.Fl M
486082ba4baSschwarzeoption and the
487082ba4baSschwarze.Ev MANPATH
488082ba4baSschwarzevariable first appeared in
489082ba4baSschwarze.Bx 4.3 ;
490082ba4baSschwarze.Fl m
491082ba4baSschwarzein
492082ba4baSschwarze.Bx 4.3 Reno ;
493082ba4baSschwarze.Fl C
494082ba4baSschwarzein
495082ba4baSschwarze.Bx 4.4 Lite1 ;
496082ba4baSschwarzeand
497082ba4baSschwarze.Fl S
498082ba4baSschwarzeand
499082ba4baSschwarze.Fl s
500082ba4baSschwarzein
5010f10154cSschwarze.Ox 4.5
5020f10154cSschwarzefor
5030f10154cSschwarze.Nm
5040f10154cSschwarzeand in
5050f10154cSschwarze.Ox 5.6
5060f10154cSschwarzefor
5070f10154cSschwarze.Nm whatis .
50880a8b6fbSschwarzeThe options
50980a8b6fbSschwarze.Fl acfhIKklOTWw
51080a8b6fbSschwarzeappeared in
51180a8b6fbSschwarze.Ox 5.7 .
512082ba4baSschwarze.Sh AUTHORS
513082ba4baSschwarze.An -nosplit
514082ba4baSschwarze.An Bill Joy
5150f10154cSschwarzewrote
5160f10154cSschwarze.Nm manwhere
5170f10154cSschwarzein 1977 and the original
518082ba4baSschwarze.Bx
519082ba4baSschwarze.Nm
5200f10154cSschwarzeand
5210f10154cSschwarze.Nm whatis
522082ba4baSschwarzein February 1979.
523082ba4baSschwarzeThe current version was written by
5248ed73071Sschwarze.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
5258ed73071Sschwarzeand
5268ed73071Sschwarze.An Ingo Schwarze Aq Mt schwarze@openbsd.org .
527