[CLUE-Tech] Shee/export thing

Grant Johnson grant at amadensor.com
Thu Nov 15 09:40:39 MST 2001


OK, I figured out what works, now I am asking y'all why.

grant at c70051-a:~/test > cat testenv.sh
echo Before
echo $bogus
bogus=testit
echo After
echo $bogus
export bogus
grant at c70051-a:~/test > ./testenv.sh
Before

After
testit
grant at c70051-a:~/test > echo $bogus

grant at c70051-a:~/test > . ./testenv.sh
Before

After
testit
grant at c70051-a:~/test > echo $bogus
testit
grant at c70051-a:~/test >


When I just ran it and exported the env var, it didn't do anything to my 
current shell, but when I did a "dot-space" before it, it worked.  WTH? 
 I don't get why.  I just swiped this off an example.  I don't know why 
it is this way.




More information about the clue-tech mailing list