From ec85a1922001c55c0451540123817260e1e0273b Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 29 Nov 2011 10:53:42 +0000 Subject: 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). --- apropos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apropos.c') 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 * Copyright (c) 2011 Ingo Schwarze @@ -142,8 +142,8 @@ usage(void) { fprintf(stderr, "usage: %s " - "[-M path] " - "[-m path] " + "[-M manpath] " + "[-m manpath] " "[-S arch] " "[-s section] " "expression...\n", -- cgit v1.2.3