Isolate environment changes in the subshell.