Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Sep 2005 11:44:30 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Leonidas Tsampros <ltsampros@upnet.gr>
Cc:        freebsd-doc@FreeBSD.org, "Simon L. Nielsen" <simon@FreeBSD.org>
Subject:   Re: docs/85986: FreeBSD keyword missing if you display security(7) with apropos
Message-ID:  <20050912084430.GD16029@orion.daedalusnetworks.priv>
In-Reply-To: <20050912104621.GA12835@bifteki.lan>
References:  <200509112100.j8BL0asq017028@freefall.freebsd.org> <20050912104621.GA12835@bifteki.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-09-12 10:46, Leonidas Tsampros <ltsampros@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@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050912084430.GD16029>