summaryrefslogtreecommitdiffstats
path: root/apropos.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-29 10:53:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-29 10:53:42 +0000
commit34df86dc46608f2598c87e854a8b4fb6369129d9 (patch)
tree2134dd9a04b71e7dce49ed05769f493a210fa463 /apropos.c
parentba260b631b89ba11f9cb1397e777e91f3bb3438d (diff)
downloadmandoc-34df86dc46608f2598c87e854a8b4fb6369129d9.tar.gz
Make `-i' only apply to regular expressions. For the equality operator
(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).
Diffstat (limited to 'apropos.c')
-rw-r--r--apropos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apropos.c b/apropos.c
index 0d97c82a..939fbce0 100644
--- a/apropos.c
+++ b/apropos.c
@@ -142,8 +142,8 @@ usage(void)
{
fprintf(stderr, "usage: %s "
- "[-M path] "
- "[-m path] "
+ "[-M manpath] "
+ "[-m manpath] "
"[-S arch] "
"[-s section] "
"expression...\n",