Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wilburke

macrumors newbie
Original poster
Jul 7, 2008
3
0
Setting up my environment for program building using .profile doesn' t work (eg extending the $PATH).
It seems that appending a string to a variable just overwrites the initial value of the variable.
My .profile contains following 2 lines:
export TST="this is my first string"
export TST2="$TST after expanding"
After login in (I use puTTY) I get following values:
$ echo $TST
this is my first string
$ echo $TST2
after expanding string

Can anybody help me?
 

priller

macrumors regular
Dec 15, 2007
243
0
Works fine with 10.5.4 & bash.

gamma:~ priller$ echo $TST
this is my first string
gamma:~ priller$ echo $TST2
this is my first string after expanding
 

wilburke

macrumors newbie
Original poster
Jul 7, 2008
3
0
BTW: how can I execute my (modified) .profile without logging out and logging in again?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.