From: terany on
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.

Can anyone give me clues on this?

From: Bit Twister on
On Fri, 31 Aug 2007 05:09:18 -0700, terany(a)gmail.com wrote:
> 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

You might want to try

if [ -f ~/test.env ]; then
. ~/test.env
fi
From: terany on
I might have typo mistake.
I think prefix "." should be definitely important otherwise the
"test.env" can't be executed.
But, I sure the "test.env" has been ran as the echo line is shown.
Anyway, thanks for information

> On Fri, 31 Aug 2007 05:09:18 -0700, ter...(a)gmail.com wrote:
> > 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
>
> You might want to try
>
> if [ -f ~/test.env ]; then
> . ~/test.env
> fi


From: terany on
I might have typo mistake.
I think prefix "." should be definitely important otherwise the
"test.env" can't be executed.
But, I sure the "test.env" has been ran as the echo line is shown
while the problem insisted.

Anyway, thanks for information

> On Fri, 31 Aug 2007 05:09:18 -0700, ter...(a)gmail.com wrote:
> > 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
>
> You might want to try
>
> if [ -f ~/test.env ]; then
> . ~/test.env
> fi