* Danek Duvall <danek.duvall at sun.com> [2006-05-04 14:49]:
> On Thu, May 04, 2006 at 11:29:31PM +0200, Rainer Orth wrote:
>
> > Stephen Hahn <sch at eng.sun.com> writes:
> >
> > > MANPATH=/usr/man,1gnu,1
> >
> > Although I've raised this before, I'd like to do so again: what is the
> > advantage of using this Solaris-specific way of handling this preference
> > selection, compared to the perfectly well-established and -understood way
> > of having several directories in MANPATH?
>
> I just noticed that Stephen did something weird with his definitions of
> MANPATH above. That's not valid MANPATH syntax on Solaris any more than it
> is anywhere else. I think he meant "MANSECTS", as in
> /usr/share/man/man.cf, but without the path. Thus the default MANPATH
> would stay "/usr/share/man", but /usr/share/man/man.cf would ship with
> "1gnu" immediately following "1" (or possibly following "1m"?).
It works:
$ echo $MANPATH
/usr/man,3c,2,1m,1:/usr/man:/usr/perl5/man:...
$ /usr/bin/man kill
Reformatting page. Please Wait... done
System Calls kill(2)
....
$ unset MANPATH
$ /usr/bin/man kill
Reformatting page. Please Wait... done
User Commands kill(1)
and it's documented:
$ man man
MANPATH A colon-separated list of directories; each
directory can be followed by a comma-
separated list of sections. If set, its value
overrides /usr/share/man as the default directory
search path, and the man.cf file as the default
section search path. The -M and -s flags, in turn,
over- ride these values.)
- Stephen
--
Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems
stephen.hahn at sun.com http://blogs.sun.com/sch/