SA-MP Forums Archive
Set path ends up - no effect? (Redhat) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Set path ends up - no effect? (Redhat) (/showthread.php?tid=415877)



Set path ends up - no effect? (Redhat) - RanSEE - 15.02.2013

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.


Re: Set path ends up - no effect? (Redhat) - RanSEE - 21.02.2013

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