[ILUG] Editing .bashrc

Brian Shields brian.shields at geminga.it.nuigalway.ie
Thu Apr 15 14:00:36 IST 2004


Hi all,
I am new to Linux so you will have to excuse my asking what are probably
silly questions. I am trying to edit the $PATH variable in my ~/.bashrc
file to include the $J2EE_HOME/bin directory. I am running into 2
problems:
1) When i try and force the changes to .bashrc by running source
.bashrc, the new entries are being added to $PATH but older ones, that
have been removed during last edit, are not. It is not until i log out
and back in again that these changes are recognised. Is this normal?

2) when i do include the $J2EE_HOME/bin directory i use the command
export PATH=${J2EE_HOME}/bin:${PATH}
When i source .bashrc my $PATH now begins with
/usr/local/bin/j2sdkee1.3.1/bin. This is correct. However when i log out
and back in my original PATH now begins with
/usr/local/bin/j2sdkee1.3.1/bin:/usr/local/bin/j2sdkee1.3.1/bin:/usr/local/bin/j2sdkee1.3.1/bin Any simple explanations for this?

Thanks,
Brian.




More information about the ILUG mailing list