Hi Mike, Mike Belopuhov wrote on Tue, Apr 12, 2016 at 08:41:16PM +0200:
> why is 3p still on the "sections" list in the fs_search? > Just a lookup optimization? No. The purpose of the function fs_search() is not optimization, but fallback. If the requested manual is found in a database, that version is used. Otherwise, for example when a database is missing, corrupt, or out of date with the requested entry missing, the function fs_search() is called, searching the file system as a last resort before giving up. Database lookup and file system lookup work in very different ways, so both need different prioritizing algorithms, too. If you remove the "3p" from sections[] in fs_search(), file system fallback will no longer work for Perl manuals. If you leave it after the "3" in there, Carp(3p) will still override carp(4) when /usr/share/man/mandoc.db is broken. Yours, Ingo