equivalent of "export" (changing parent's environment)

Oleg Broytmann phd at phd.pp.ru
Mon Mar 11 11:59:25 EST 2002


On Mon, Mar 11, 2002 at 11:50:16AM -0500, Clark C . Evans wrote:
> Hello.  I have two shell scripts, a.sh and b.sh such
> that a.sh calls b.sh, and b.sh uses "export key=value"
> to set some defaults used later on in a.sh.

   There is something wrong in your explanation (or understanding). There
is no way b.sh can change *anything* in a.sh environment. Either a.sh just
"source" (inclide) b.sh (not exec, but source), or b.sh returns new
environment to a.sh using echo (and a.sh executes generated commands).

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list