On Thu, Aug 12, 1999 at 10:21:00AM +0200, Dag-Erling Smorgrav wrote:
> Dag-Erling Smorgrav <des@flood.ping.uio.no> writes:
>
> > Ruslan Ermilov <ru@FreeBSD.org> writes:
> > > Log:
> > > MFC: revision 1.11
> > > /usr/local is not mandatory, remove it from MANDATORY_MANPATH.
> >
> > No! The correct fix is to make manpath just ignore inexistent
> > directories instead of bitching about them.
>
> Actually, the correct fix is to do nothing, since the manpath()
> function already ignores the error if called with an argument of 0,
> which happens when it is called by man, or if you give the -q option
> to manpath. Please back this out in -CURRENT and -STABLE. It makes it
> unnecessarily difficult for (new) users to find their man pages.
>
MANDATORY_MANPATH should list only _mandatory_ paths!
Neither of /usr/local/man, /usr/local/lib/perl5/5.00503/man and
/usr/X11R6/man is guaranteed to exist on a system.
But it's not a problem for a new user since:
1) /usr/local/bin is put to the PATH by default (/etc/login.conf)
as well as /usr/X11R6/bin.
2) `MANPATH_MAP /usr/local/bin /usr/local/man' will add /usr/local/man
to manpath if /usr/local/bin is set in the user's PATH (see the
output of the `manpath -d')
IMHO, the correct fix would be to comment out
MANDATORY_MANPATH /usr/X11R6/man
as well.
--
Ruslan Ermilov Sysadmin and DBA of the
ru@ucb.crimea.ua United Commercial Bank,
ru@FreeBSD.org FreeBSD committer,
+380.652.247.647 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message