man manpages man1p man0p ... etc.

Nico R. n-roeser at gmx.net
Fri Sep 17 14:44:31 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Lee wrote:

> I did check the path.  The man pages are located in:
> /usr/share/man/man{0,0p,1,1p,...}
> The same path for all my man pages.
> 
> man acknowledges the search path:
> /usr/share/man
> I can display the man pages in man1, but I can't
> display the pages in man1p.
> Why would the path to man1 work but the path to man1p
> not?

Edit your /etc/man.conf (hint: search for MANSECT). Mine has a part like
this:
- -----BEGIN /etc/man.conf snippet-----
#
# Default manual sections (and order) to search if -S is not specified
# and the MANSECT environment variable is not set.
#
MANSECT         1p:1:8:0p:3p:2:3:4:5:6:7:9:n:tcl:l:p:o
- -----END /etc/man.conf snippet-----

That means that man should look for the man page in section 1p (POSIX
user commands) first, and fall back to sections 1, 8, 0p, ... (in that
order) if it was not found in 1p.
As you can see, my configuration makes sure that I always get the POSIX
man page for something if it exists. (I usually need that for portable
coding.)

You can try the following:
man 1 cp
man 1p cp
man cp

Note: This syntax to specify the syntax applies to GNU man, I know other
mans where you have to say 'man -s 1', for example (IIRC).

Have fun,
- -- 
Nico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBS1rDxI5uhYOGv4URAnuwAKC8ESST/Nt/tkuN+V/5McGuPPJAhQCg5QhY
4oRRD5fcrRHdAzayCBLPD+Y=
=w0wy
-----END PGP SIGNATURE-----



More information about the lfs-support mailing list