tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Indexing and searching non-numeric sections with apropos(1)



On Thu, Apr 14, 2016 at 9:26 AM, Paul Goyette <paul%whooppee.com@localhost> wrote:
> On Thu, 14 Apr 2016, Paul Goyette wrote:
>
>> On Thu, 14 Apr 2016, Abhinav Upadhyay wrote:
>>
>>> On Thu, Apr 14, 2016 at 3:20 AM, Paul Goyette <paul%whooppee.com@localhost> wrote:
>>>>>
>>>>> With bin/51062, makemandb(8) can index non-numeric sections and also
>>>>> apropos(1) can now accept non-numeric sections for querying. That
>>>>> means you do queries like
>>>>>
>>>>> apropos -s 9lua systm
>>>>> apropos -s n foo bar
>>>>>
>>>>> To be able to use this feature, you need to regenerate the database.
>>>>> You can do this by running makemandb -f manually.
>>>>
>>>>
>>>>
>>>>
>>>> I rebuilt my database.  Although apropos(1) now finds the information
>>>> for
>>>> the non-numeric sections, it is still reporting them wrongly:
>>>>
>>>>    #  apropos -s 9lua lua
>>>>    intro (9)       introduction to the Lua kernel bindings
>>>>    This section provides an overview of the Lua kernel bindings, ...
>>>>
>>>> Note that the output says "intro (9)" - shouldn't it say "intro (9lua)"?
>>>
>>>
>>>
>>> Sorry, I forgot to mention that you also need to rebuild makemandb and
>>> apropos.
>>> After that, rebuilding the database should give the correct output.
>>
>>
>> Ah, OK.  I will check that soon.
>
>
> Yes, that works just great!
>
> # makemandb -f -Q
> # apropos -s 9lua lua
> intro (9lua)    introduction to the Lua kernel bindings
> This section provides an overview of the Lua kernel bindings,  ...

Awesome! Thanks for trying it out :-)

--
Abhinav


Home | Main Index | Thread Index | Old Index