diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-29 10:53:42 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-29 10:53:42 +0000 |
commit | ec85a1922001c55c0451540123817260e1e0273b (patch) | |
tree | 16ea555314663347607f786ac053f824691c1cfa /apropos.c | |
parent | 47009d62dfb725cda5c2cbbbd459096214ec801a (diff) | |
download | mandoc-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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", |