From: Alexander Barton Date: Fri, 17 Sep 2010 09:48:48 +0000 (+0200) Subject: Only export PATH if it is set by this script; don't export MANPATH X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=commitdiff_plain;h=d5ae213b2a67d352cef156d1c300404b1027aed4;hp=a9c9b76faef09392767684a88fca8394227a9c70 Only export PATH if it is set by this script; don't export MANPATH This solves the problem, that manpath(1) on Mac OS X only is in effect if MANPATH is not set at all. --- diff --git a/sys/profile b/sys/profile index 546f0ac..2e40616 100644 --- a/sys/profile +++ b/sys/profile @@ -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=""