docs/85986: FreeBSD keyword missing if you display security(7) with apropos

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Sep 12 08:44:35 UTC 2005


On 2005-09-12 10:46, Leonidas Tsampros <ltsampros at upnet.gr> wrote:
>On Sun, Sep 11, 2005 at 09:00:36PM +0000, Simon L. Nielsen wrote:
>>On 2005.09.11 20:12:46 +0000, Matthias Schmidt wrote:
>>
>>> If you type apropos security to get the security(7) man page the
>>> word "FreeBSD" is missing,
>>>
>>> matthias at c0re:/ % apropos security
>>> security(7)              - introduction to security under
>>>                                                          ^^^^
>>
>> I would say this should be fixed in apropos rather than adding a
>> workaround to a specific manual page, especially since I would
>> suspect that other manual pages are also affected.
>>
>> That said, I have no idea how complicated it would be to fix it in
>> apropos.
>
> I took a look to src/gnu/usr.bin/man/apropos/apropos.sh , and really
> apropos is nothing more than a grep -Ehi. The problem is that grep is
> just working right. It doesn't find the word 'FreeBSD' in the
> description line (where it got the 'security' match) so grep cannot
> display that word.

True.

This would still work fine, though, if catman(1) was smart enough to
extract the full text of the NAME line, even if the NAME line contains
groff macro calls.




More information about the freebsd-doc mailing list