Set path ends up - no effect? (Redhat)
#1

I am trying to set the path in with adding lines in .bash_profile

Код:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

if [ -f ~/test.env ]; then
~/test.env
fi

PATH=$PATH:$HOME/bin
export PATH
Where test.env is just a few of lines,

Код:
export TOOLCHAIN_PATH=/1234567
export PATH=${TOOLCHAIN_PATH}/bin:$PATH
echo PATH=${PATH}
The last line in test.env is to make sure the desired path is added in
every login. Actually, I got what I want when login as following text
is shown

Код:
PATH=/1234567/bin:/user/kerberos/bin:/user/local/bin:/bin:/usr/bin
However, when the prompt comes up, I type "set" to further check,
Код:
PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/shane/bin
Originally, the system work fine with the setting. I don't what
changes that sucks the system.

some clues might help?

Regards.
Reply
#2

Sorry for the bump
But i really need help on this one..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)