variables in .profile


setting environment program building using .profile doesn' t work (eg extending $path).
seems appending string variable overwrites initial value of variable.
.profile contains following 2 lines:
export tst="this first string"
export tst2="$tst after expanding"
after login in (i use putty) following values:
$ echo $tst
first string
$ echo $tst2
after expanding string

can me?
 

works fine 10.5.4 & bash.

gamma:~ priller$ echo $tst
first string
gamma:~ priller$ echo $tst2
first string after expanding
 


Forums Macs macOS macOS


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Upgrade Eligibility?

need help with itunes 7.7

How to change Apple IDs on iPhones