From: schwarze Date: Sat, 12 Jul 2014 16:13:36 +0000 (+0000) Subject: Start fixing issues that beck@ helped find: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4477fbfa3c86274a5c2e419c2ca17fa02d74d608;p=openbsd Start fixing issues that beck@ helped find: Distinguish between man(1) and apropos(1) mode by adding back the classical QUERY_STRING variable "apropos=". Change the default back to "apropos=0". Control it by adding a HTML for manuals matching \n" - " " + "for manuals \n", scriptname); + printf("\n" + "q.expr ? req->q.expr : ""); printf("\">, section " "q.arch; search.sec = req->q.sec; - search.deftype = TYPE_Nm | TYPE_Nd; - search.flags = 0; + search.deftype = req->q.equal ? TYPE_Nm : (TYPE_Nm | TYPE_Nd); + search.flags = req->q.equal ? MANSEARCH_MAN : 0; paths.sz = 1; paths.paths = mandoc_malloc(sizeof(char *));