export PATH
fi
# prepend optional directories to PATH ...
-path=""
+unset path
for d in /Developer/usr/bin /usr/pkg/bin /usr/ucb /usr/lib/ccache /opt/*/bin; do
if [ -d "$d" -o -h "$d" ]; then
[ -e "$d/.not_in_path" ] || path="$path$d:"
fi
done
[ -n "$path" ] && PATH="$path$PATH"
+unset path
if [ "$LOGNAME" = "root" ]; then
- path=""
for d in /usr/pkg/sbin /opt/*/sbin; do
if [ -d "$d" -o -h "$d" ]; then
[ -e "$d/.not_in_path" ] || path="$path$d:"
fi
done
[ -n "$path" ] && PATH="$path$PATH"
+ unset path
fi
# append optional directories to PATH ...
for d in /usr/bin/X11 /usr/games /usr/share/php/bin; do
[ -e "$d/.not_in_path" ] || PATH="$PATH:$d"
fi
done
+unset d
# set PATH so it includes user's private executables
[ -d ~/Applications -a ! -e ~/Applications/.not_in_path ] \
&& PATH=~/Applications:"${PATH}"
[ -n "$path" ] && MANPATH="$path$MANPATH"
[ -d ~/share/man ] && MANPATH=~/share/man:"${MANPATH}"
[ -d ~/man ] && MANPATH=~/man:"${MANPATH}"
+ unset path d
fi
# set variable identifying the chroot you work in
. "$f"
esac
done
+ unset f
fi
# read local profile, if available