in reply to Environment setting using shell

See Get default login environment and its replies. Basically, you will have to append a command to output the effective environment of the child and read that output back in in the parent.