From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 1f48458d for ; Tue, 18 Apr 2017 10:07:19 -0500 (EST) Date: Tue, 18 Apr 2017 10:07:19 -0500 (EST) Message-Id: <15388538165342442856.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: The apropos(1) manual still documents the unary -i operator for X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- The apropos(1) manual still documents the unary -i operator for regular expression search terms, but it appears that somewhere along the way, the implementation got lost, so restore it. Bug found while investigating other reports from Gonzalo Tornaria. Modified Files: -------------- mdocml: mansearch.c Revision Data ------------- Index: mansearch.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mansearch.c,v retrieving revision 1.71 retrieving revision 1.72 diff -Lmansearch.c -Lmansearch.c -u -p -r1.71 -r1.72 --- mansearch.c +++ mansearch.c @@ -672,6 +672,12 @@ exprterm(const struct mansearch *search, return e; } + if (strcmp("-i", argv[*argi]) == 0 && *argi + 1 < argc) { + cs = 0; + ++*argi; + } else + cs = 1; + e = mandoc_calloc(1, sizeof(*e)); e->type = EXPR_TERM; e->bits = 0; @@ -690,7 +696,6 @@ exprterm(const struct mansearch *search, * If needed, request regular expression handling. */ - cs = 1; if (search->argmode == ARG_WORD) { e->bits = TYPE_Nm; e->match.type = DBM_REGEX; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv