aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos.1
Commit message (Collapse)AuthorAgeFilesLines
* clarify documentation of macro keysIngo Schwarze2018-02-231-2/+25
|
* various nits found with mandoc -TlintIngo Schwarze2017-07-041-3/+3
|
* simplify the SYNOPSIS as well, just like the option lists;Ingo Schwarze2017-03-271-2/+2
| | | | suggested by and OK jmc@
* Simplify: mention at one place that -fkl override each other,Ingo Schwarze2017-03-271-12/+5
| | | | | rather than stating it separately for each option. Suggested, OKed, and tweaked by jmc@.
* For some options that are rarely needed in apropos(1) and man(1),Ingo Schwarze2017-03-251-29/+7
| | | | | | | delete the verbose descriptions and point to man(1) and mandoc(1), respectively, instead. That shortens the pages and makes them easier to read. Tweaks and OK jmc@, based in part on ideas from tedu@.
* Correct description of MANPATH, and a few more improvementsIngo Schwarze2017-03-181-19/+24
| | | | to the ENVIRONMENT section; OK jmc@
* Document man(1) section selection priority,Ingo Schwarze2017-03-171-4/+25
| | | | | and correct description of apropos(1) output search order. Suggested by tb@.
* add missing HISTORY informationIngo Schwarze2017-01-311-2/+6
|
* No need to hardcode /usr/bin/ as the path to more(1); helps portability.Ingo Schwarze2015-04-031-3/+4
| | | | | We don't hardcode the paths to gunzip(1) and cmp(1) either. Discussed with ajacoutot@.
* Escape punctuation characters that have a different meaning in -Tpdf.Ingo Schwarze2015-03-301-8/+8
| | | | | | | | ~, `, and ' get translated to non-ASCII characters by most troff implementations when generating PostScript/PDF output. When the original ASCII character is meant, it needs to be manually escaped. Patch from bentley@.
* Delete the -V option. It serves no purpose but keeps confusing people.Ingo Schwarze2015-02-161-5/+3
| | | | | | | | Keeping track of the versions of installed software is the job of the package manager, not of the individual binaries. If individual binaries include version numbers, that tends to goad people into writing broken configuration tests that inspect version numbers instead of properly testing for features.
* integrate preconv(1) into mandoc(1);Ingo Schwarze2014-10-251-3/+3
| | | | enhances functionality and reduces code and docs by more than 300 lines
* Implement the traditional -h option for man(1): show the SYNOPSIS only.Ingo Schwarze2014-09-031-3/+8
| | | | | | | As usual, we get mandoc -h and apropos -h for free. Try stuff like "apropos -h In=dirent" or "apropos -h Fa=timespec". Only useful for terminal output, so -Tps, -Tpdf, -Thtml ignore -h for now.
* Introduce a man(1) -l option as an alias for mandoc -a.Ingo Schwarze2014-08-301-5/+21
| | | | | | | | | | | | | Basically, this does the same as man -l in Linux man-db. The point is that now all functionality of the combined tool is reachable from the man(1) command name: apropos = man -k, whatis = man -f, mandoc = man -cl. Originally suggested by Carsten dot Kunze at arcor dot de, current maintainer of the Heirloom Documentation Tools. While here, add various missing information to the usage() and to the manuals.
* implement MANPAGER and PAGERIngo Schwarze2014-08-221-2/+14
|
* mandoc -a, man, apropos -a, whatis -a now paginate by defaultIngo Schwarze2014-08-221-4/+17
| | | | | but provide an option -c to not paginate; taking inspiration from manpage.c, hence adding (c) 2012 kristaps@
* Describe the new options -afkw.Ingo Schwarze2014-08-211-8/+43
| | | | Clean up the description of whatis(1).
* Complete the whatis.1 -> apropos.1 merge,Ingo Schwarze2014-08-211-8/+26
| | | | in particular regarding HISTORY and AUTHORS.
* misplaced punctuationIngo Schwarze2014-04-241-4/+4
|
* Slowly, the dust begins to settle.Ingo Schwarze2014-04-181-8/+8
| | | | | We are keeping the traditional name makewhatis(8). No content change.
* Fix a few lies; polish wording and formatting while here.Ingo Schwarze2014-04-181-25/+32
|
* remove documentation of the former macro key "NAME";Ingo Schwarze2014-04-151-3/+2
| | | | it got deleted with mansearch.h rev. 1.12
* Remember which names are in the NAME section.Ingo Schwarze2014-04-041-1/+3
| | | | | | | This helps to find missing MLINKS. Database build times do not change and database growth is minimal (1.2% with -Q, 0.7% without -Q in /usr/share/man), so making this optional would be pointless.
* merge OpenBSD rev. 1.20, describing new featuresIngo Schwarze2014-04-041-4/+22
|
* Sync to OpenBSD:Ingo Schwarze2014-03-171-57/+153
| | | | | | | | * do not talk about shell globbing * describe logical operations * improve examples * add HISTORY * some wording improvements for clarity
* Merge the relevant parts from the VERSION_1_12 branch:Ingo Schwarze2013-10-011-3/+3
| | | | | - change mandocdb.db to mandoc.db - add HISTORY to mandocdb(8)
* For citing the names and email addresses of authors,Ingo Schwarze2013-07-131-4/+3
| | | | | | | consistently use the style ".An name Aq Mt email". Triggered by a question from Jan Stary <hans at stare dot cz>, ok jmc@.
* Simple partial sync with OpenBSD:Ingo Schwarze2013-07-051-6/+6
| | | | | | | * Again accept suffixes on the name of the whatis utility. * The usage line for whatis must not invite expressions. * Revert the argument names in the SYNOPSIS back to the usual ones. * Revert a few gratuitious changes regarding line breaks etc.
* Merge whatis.1 into apropos.1 (and remove), add whatis bits to aproposKristaps Dzonsons2012-06-091-15/+21
| | | | (via mansearch), and merge mandocdb.h into mansearch.h (and remove).
* Flip apropos to use mansearch instead of apropos_db.Kristaps Dzonsons2012-06-081-94/+26
| | | | | | | | | This makes the utility much smaller and simpler. A lot of functionality has been omitted while the sqlite3 search routines improve (logical operations, etc.). It still needs work to make the output more conventional. Also add the manpage utility, which I use extensively as a mind-meld of apropos and man.
* Be insane. Make apropos(1) subsume man(1).Kristaps Dzonsons2012-03-241-12/+28
|
* State default usage before listing arguments of a utility. Inspired by aKristaps Dzonsons2011-12-251-13/+15
| | | | patch to mandocdb.8 by schwarze@ some time ago. Ok jmc@.
* Use the traditional name "whatis.db" for the mandocdb(8) databases.Ingo Schwarze2011-12-251-4/+4
| | | | Requested by deraadt@, ok kristaps@.
* Support leading, trailing and double colons in MANPATH to prepend,Kristaps Dzonsons2011-12-241-3/+14
| | | | | | | | append or insert the man.conf(5) default path; compatible with GNU manpath(1), implementation by kristaps@, heavily tweaked by schwarze@. Updates to MANPATH documentation applied to whatis.1, apropos.1, and catman.8 also.
* implement -C (alternative config file) for apropos(1) and mandocdb(8),Ingo Schwarze2011-12-121-3/+25
| | | | | including various tweaks to the whatis(8) manual; ok kristaps@
* Snip some whitespace from apropos(1) and remove mandoc(1) ref fromKristaps Dzonsons2011-11-291-2/+2
| | | | | whatis(1) (both apropos/whatis aren't related to mandoc from an operator's perspective).
* Make `-i' only apply to regular expressions. For the equality operatorKristaps Dzonsons2011-11-291-23/+17
| | | | | | (and thus the default), always use strcasestr(). Discussed on tech@ with schwarze@. While here, fix the apropos.c usage() message to be consistent with apropos(1) and clean up the EXAMPLES in apropos(1).
* Add tables of matchable keys into apropos.1. Ok and with feedback byKristaps Dzonsons2011-11-291-6/+84
| | | | schwarze@.
* Sync to OpenBSD, mostly gratuitous and whitespace differences,Ingo Schwarze2011-11-261-5/+5
| | | | | | | | | but a few serious things as well: * -M overrides MANPATH * -m prepends to the path * put back database close calls that got lost in mandocdb * missing sys/types.h in manpath.c, needed for size_t ok kristaps@
* Fix whitespace in manuals.Kristaps Dzonsons2011-11-231-4/+3
|
* Initial support for man.conf/makepath(1).Kristaps Dzonsons2011-11-201-4/+14
|
* Clarify some behaviour, bringing schwarze@'s patch and mine closer togetherKristaps Dzonsons2011-11-201-20/+12
| | | | | | | | | | | | | | | | (although I still don't have -M, which is a big piece). First, the default search path is the cwd. This will change to use -M once I look over that code. If MANPATH is specified, this replaces the cwd. Both of these are augmented by -m. If paths don't exist or don't have databases, they're silently ignored. This makes perfect sense: you may be given a superset of possible paths. The corner case of no paths (where, say, MANPATH consists of bogus paths or the cwd is unreadable) simply means that no paths are searched.
* Integrate a moderately-patched version of schwarze@'s support for multipleKristaps Dzonsons2011-11-201-5/+14
| | | | | | | | | | | directories containing mandocdb(8) databases. Some changes follow: (1) don't support -M yet; (2) fall back to cwd if no prior manpath has been specified; (3) resolve manpages using realpath() to prevent consecutive chdir()'s over relative paths; (4) note where further error-reporting is required; (5) fix leaking memory on exit in several cases.
* Evaluation with logical subexpressions. This allows support for arbitrary,Kristaps Dzonsons2011-11-181-52/+96
| | | | nested logical subexpressions with AND (-a) and OR (-o) support.
* Change getopt() to be more like schwarze@'s suggestions.Kristaps Dzonsons2011-11-091-40/+21
|
* Use `Mt' instead of `Aq' for email address.Kristaps Dzonsons2011-10-081-3/+4
|
* Import apropos from mandoc-tools after inlining all source filesKristaps Dzonsons2011-10-061-0/+169
(originally including extern.h, state.c, and sort.c). The apropos utility interfaces with the databases of mandocdb to provide semantic searching capabilities. It Works For Me, but will need lots of cleanup in the coming months.