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

wilburke

macrumors newbie
Original poster
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?
 
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
 
BTW: how can I execute my (modified) .profile without logging out and logging in again?
 
You should be able to type

. ./profile

at the command line. the ".<space>" tells it to execute in your current shell.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.