getting shell variables in parent-shell which were defined in a sub-shell

getting shell variables in parent-shell which were defined in a sub-shell

Post by Maxwell Lo » Sat, 01 Mar 2008 02:50:48



XXXX@XXXXX.COM writes:


One parent can have hundreds of childred.

Suppose they all decided to change the parent differently?

As pk says, you can source a common file.
You could also have a child output something the parent executes.
 
 
 

getting shell variables in parent-shell which were defined in a sub-shell

Post by Claudi » Sat, 01 Mar 2008 04:41:57


source definemyvariables.sh

Best Regards,