aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitec85a1922001c55c0451540123817260e1e0273b (patch)
tree16ea555314663347607f786ac053f824691c1cfa /apropos.c
parent47009d62dfb725cda5c2cbbbd459096214ec801a (diff)
downloadmandoc-ec85a1922001c55c0451540123817260e1e0273b.tar.gz
mandoc-ec85a1922001c55c0451540123817260e1e0273b.tar.zst
mandoc-ec85a1922001c55c0451540123817260e1e0273b.zip
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apropos.c b/apropos.c
index 2ccdd5fe..ae4cedca 100644
--- a/apropos.c
+++ b/apropos.c
@@ -1,4 +1,4 @@
-/* $Id: apropos.c,v 1.21 2011/11/28 09:44:05 schwarze Exp $ */
+/* $Id: apropos.c,v 1.22 2011/11/29 10:53:42 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -142,8 +142,8 @@ usage(void)
{
fprintf(stderr, "usage: %s "
- "[-M path] "
- "[-m path] "
+ "[-M manpath] "
+ "[-m manpath] "
"[-S arch] "
"[-s section] "
"expression...\n",