Hi,

andrew fabbro wrote on Thu, Jun 25, 2015 at 11:00:32AM -0700:
> On Wed, Jun 24, 2015 at 9:38 PM, Hrishikesh Muruk wrote:

>> The online man (man.cgi) for intro(9) is very short
>> I suppose the other man pages in section 9 (kernel
>> developer's manual) will have more details.

As a matter of principle, i make sure that the same manual pages are
available on the web and in an installed system, and that the content 
is the same.  If you find differences in content, that's a bug.

>> Is there a way to see all of the pages in section 9 using man.cgi
>> (or man)?
>> A "." in the search window with "Search with apropos query" selected
>> and the section set to 9
>>   http://goo.gl/qIxokF
>> But it does not seem to get a complete list of pages in section 9

Indeed.  What you are asking for here is a literal full stop in the
name or one-line description of a manual page.  Regular expressions 
are not the default mode for searches, see apropos(1).

> I asked Kristaps Dzonsos this question a while back and he was kind
> enough to send me the answer.  If you want to get a list of man pages
> in, say, section 9:
> 
> http://www.openbsd.org/cgi-bin/man.cgi?query=any~.*&sec=9&arch=default&manpath=OpenBSD-5.7&apropos=1

That can be improved.  The 'any' isn't needed here, matching the
empty substring is slightly faster than regular expressions, and
the arch= specification is redundant, too:

http://www.openbsd.org/cgi-bin/man.cgi?query=%3D&sec=9&manpath=OpenBSD-5.7&apropos=1

The command line equivalent is something like

  $ apropos -s 9 =
  $ apropos -s 9 Nm=

This answer was very wrong:

Mike Burns wrote on Thu, 25 Jun 2015 11:52:20 +0200:

> I had done this; perhaps there is a better way, but I don't know it:
>   $ apropos -s 9 *

The asterisk gets expanded by the shell, so the result depends on
whatever files you have in the current directory.  Something like

  $ apropos -s 9 \*
  $ apropos -s 9 '*'

wouldn't be better because apropos(1) does not treat the asterisk
as a special character but looks for manuals containing a literal 
asterisk in the title line, like usbtablet(4).

Yours,
  Ingo

Reply via email to