Sarge, KDE 3.2.3: modifying /etc/profile doesn't change path
So, I'm trying to add /usr/java/bin and /usr/java/jre/bin to my path. I've edited /etc/profile, so it looks like this:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/java/bin:/usr/java/jre/bin"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
However, when I echo $PATH, I get:
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
which is obviously missing what I added.
Shell is /bin/bash, and modifying .bash_profile in my user directory doesn't seem to do anything either... any ideas what's up?
|