I'l like a clean way for a child process to change or add enviromental
variables to the calling process or parent shell....
Background: I've got a number of legacy systems/applications which call a
third party's C-routine. The C-routine somehow sets a few environmental
varibles for the parent. The parent continues.
I'm trying to develop a set of utilities which behave the same way, and I'd
like to replace the third party routine with a generic shell or routine. I
need to keep the same calls and return values using the same method so I
won't have to edit the many calling scripts which previously called the
third party routine.
No I don't want to just dump or source a temporary file becuase I'd like to
keep the calls to the third party shell in the calling script without
alterating the calling script
Also, I'm not too nuts about exec'ing a new shell from the child because of
side-effects and parent loosing control of the children.