From owner-freebsd-stable Sat Sep 15 18:33:36 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp.noos.fr (descartes.noos.net [212.198.2.74]) by hub.freebsd.org (Postfix) with ESMTP id 8F11637B403 for ; Sat, 15 Sep 2001 18:33:33 -0700 (PDT) Received: (qmail 8450704 invoked by uid 0); 16 Sep 2001 01:33:31 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender ) by 212.198.2.74 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 16 Sep 2001 01:33:31 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id f8G1XU757410; Sun, 16 Sep 2001 03:33:30 +0200 (CEST) (envelope-from root) Message-Id: <200109160133.f8G1XU757410@gits.dyndns.org> Subject: Re: $MANPATH problem. In-Reply-To: To: uid0@catastrophe.net Date: Sun, 16 Sep 2001 03:33:29 +0200 (CEST) Cc: freebsd-stable@freebsd.org Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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