Thread
:
How to source ~/.profile through a script with effects lasting after the script has run?
View Single Post
Joorin
2011-09-01 , 19:09
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#
5
Environment variables are, by definition, bound to a certain process.
If you spawn a child process, it inherits the environment.
So, if you want your changes to stay available you need to run the process in the same environment as the one you changed.
Quote & Reply
|
Joorin
View Public Profile
Send a private message to Joorin
Find all posts by Joorin