]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Only export PATH if it is set by this script; don't export MANPATH
authorAlexander Barton <alex@barton.de>
Fri, 17 Sep 2010 09:48:48 +0000 (11:48 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 17 Sep 2010 09:48:48 +0000 (11:48 +0200)
This solves the problem, that manpath(1) on Mac OS X only is in effect
if MANPATH is not set at all.

sys/profile

index 546f0acea549f288427aa458aa8e02d13e034092..2e40616b5e6e3da2010fe3b17b695eb3944ea3d3 100644 (file)
@@ -20,13 +20,12 @@ export UID
 export LC_MESSAGES="C"
 
 # Initialize PATH variable
-export PATH MANPATH
 if [ -x /usr/libexec/path_helper ]; then
-       PATH=""; MANPATH=""
        eval `/usr/libexec/path_helper -s`
 else
        PATH="/usr/local/bin:/usr/bin:/bin"
        [ "$UID" -eq 0 ] && PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
+       export PATH
 fi
 # prepend optional directories to PATH ...
 path=""