From d5ae213b2a67d352cef156d1c300404b1027aed4 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 17 Sep 2010 11:48:48 +0200 Subject: [PATCH 1/1] 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. --- sys/profile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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="" -- 2.39.2