in reply to Reading and setting the environment from a shell script for the calling program

Howdy!

The child process cannot change the parent process's environment. Period. Stop. End of story.

On the other hand, if the child process diddles its environment and concludes by running 'env', the parent can capture that output and use it (or whatever subset it cares to take) to update its own environment.

See Re: UNIX environment setup via perl for my take on this...

yours,
Michael
  • Comment on Re: Reading and setting the environment from a shell script for the calling program