diff options
author | Colin Watson <cjwatson@debian.org> | 2007-08-29 12:04:57 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2007-08-29 12:04:57 +0100 |
commit | 935dca567d8efa15d0c4f5464ad710fdaa9ad511 (patch) | |
tree | 3c97396e67f88664dfee0473b899e05f0d4f4ee1 /docs/NEWS | |
parent | b545400e02e8b89570041787a22885344111f0ff (diff) |
Add an option to apropos to display only items matching all keywords
(thanks, Alfie Costa; Debian bug #259340).
* src/whatis.c (args, long_options, main): New -a/--and option for
apropos.
(usage): Document it.
(apropos): Store a count of how many times each item has been seen
in the hashtable. If --and was given, only display an item if its
count equals the number of supplied keywords.
(main): Store the number of supplied keywords. Adjust hash free
function.
* man/man1/apropos.man1 (SYNOPSIS, OPTIONS): Document --and.
* docs/NEWS: Document this.
Diffstat (limited to 'docs/NEWS')
-rw-r--r-- | docs/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -51,6 +51,9 @@ Major changes since man-db 2.4.4: o The output of apropos no longer includes duplicates when multiple search terms are used. + o apropos now accepts the --and option to display only items that + match all the supplied keywords. + man-db 2.4.4 (12 February 2007) =============================== |