I am running an external command via os.exec package. I can specify an environment for the external command using the Cmd.Env member. However, the command may modify that environment and I want to capture those modifications for subsequent invocations of the command.
How do I find out the state of the environment immediately after the command terminates?