Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Dec 1999 08:34:43 +0300
From:      Alexey Zelkin <phantom@cris.net>
To:        Greg Lehey <grog@lemis.com>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: MANPATH (was: cvs commit: src/share/skel dot.login)
Message-ID:  <19991222083443.C15545@scorpion.crimea.ua>
In-Reply-To: <19991222122918.Q60684@freebie.lemis.com>
References:  <199912211718.JAA32643@freefall.freebsd.org> <19991222122918.Q60684@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

On Wed, Dec 22, 1999 at 12:29:18PM +1030, Greg Lehey wrote:
> On Tuesday, 21 December 1999 at  9:18:20 -0800, Alexey Zelkin wrote:
> > phantom     1999/12/21 09:18:20 PST
> >
> >   Modified files:
> >     share/skel           dot.login
> >   Log:
> >   Comment out explicit MANPATH setting.
> >
> >   (BTW, it's very bad practice to have MANPATH environment variable set)
> 
> Why?  I agree it makes no sense if it's just set to the defaults, but
> for example I have:
> 
> /opt/man:/usr/share/man:/usr/X11R6/man:/usr/share/man/4.4BSD:/usr/share/man/BSDI-3.0:/home/S/pdp11/Archive/Trees/V7/usr/man:/home/S/pdp11/Archive/Trees/V6/usr/man:/home/S/pdp11/3bsd/usr/man:/T/src/2.11BSD/man:/usr/share/man/IRIX-5.3/u_man:/usr/share/man/IRIX-5.3/p_man:/usr/share/man/IRIX-5.3/a_man:/usr/share/man/IRIX-5.3/g_man:/usr/share/man/ISC-3.2/p_man:/usr/share/man/ISC-3.2/u_man:/usr/share/man/NonStop-UX-B23:/usr/share/man/NonStop-UX-C10:/usr/share/man/SCO-3.2.2:/usr/share/man/SCO-3.5.0:/usr/share/man/SVR4.2:/usr/share/man/Solaris-2.5:/usr/share/man/SunOS-4.1.3:/usr/share/man/Xenix-2.3.2
> 
> Obviously I can't get that any other way.

$MANPATH has more priority than manpath(1). If $MANPATH is not set then
manpath(1) should be asked for pathes. Now try to think -- you have 1000
customers/usrs which have predefined (as was by default) MANPATH and you're
installing some new additional packages (like postgres or inn -- they by
default stored manpages in /usr/local/$name/man/)  or some commercial soft.
How you'll give users access there (if this directory not listed in $MANPATH
then users never will get it by invoking man(1)) ? By changing $MANPATH
in each ~/.login ? Or maybe it's much easy to edit /etc/manpath.conf
and forget about problem ?

PS: We have to think about all FreeBSD users, not experienced users only.

> Greg
> --
> Finger grog@lemis.com for PGP public key
> See complete headers for address and phone numbers

-- 
/* Alexey Zelkin                       && phantom@cris.net    */
/* Tavric National University          && phantom@crimea.edu  */
/* http://www.ccssu.crimea.ua/~phantom && phantom@FreeBSD.org */


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991222083443.C15545>