I have the following in my .bash_profile:
Code:
#
.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/local/bin
export PATH
unset USERNAME
# Default release
release=500
echo -n "Release Level $release?: "
read release
if [ -z $release ]
then
release=500
fi
export HOME=$HOME/$release
cd $HOME
The idea is that I have different release levels under my home directory.
Examples:
/home/hradtke/500
/home/hradtke/490
This script works fine if I first login to root and do a 'su - hradtke' or if I login to the command line directly. However, if I login to gnome and open terminal the .bash_profile
never gets called. The culprit seems to be:
Code:
export HOME=$HOME/$release
If I remove that line then logging into gnome and opening terminal it does get called. More specifically, it appears that the HOME= statement is causing it to barf.
Any ideas about what might be going on here? Could it be tied to Xauthority in any way? Are the errors logging anywhere? I cannot seem to find anything.
Running RHEL3 (I know, I know, upgrading to 5 soon).
Thanks.