Date: Sun, 16 Sep 2001 03:33:29 +0200 (CEST) From: Cyrille Lefevre <clefevre@citeweb.net> To: uid0@catastrophe.net Cc: freebsd-stable@freebsd.org Subject: Re: $MANPATH problem. Message-ID: <200109160133.f8G1XU757410@gits.dyndns.org> In-Reply-To: <Pine.BSF.4.33L2.0109151723580.49628-100000@ictus.catastrophe.net>
next in thread | previous in thread | raw e-mail | index | archive | help
uid0@catastrophe.net wrote: [snip] > Basically anytime that I have MANPATH set to a variable, I > don't even get system man pages. > > I couldn't find bug report info for `man'. Any help is appreciated. FYI, I'm using the following trick to set MANPATH the way I want : setenv () { eval $1=\"\$2\" export $1; } unsetenv () { unset "$@"; } append () { eval "case :\$$1: in *:\$2:*) ;; *) $1=\"\${$1:+\$$1\${2:+:}}\$2\";; esac"; } xsetenv () { [ -d "$2" ] && setenv "$@"; } xappend () { [ -d "$2" ] && append "$@"; } xsetenv OPTDIR /usr/local xsetenv MYDIR $HOME/local unsetenv MANPATH setenv MANPATH $(manpath -q) xappend MANPATH $OPTDIR/man xprepend MANPATH $MYDIR/share/man Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109160133.f8G1XU757410>