--- execute_cmd.c 2006-11-14 17:27:11 +0000 +++ execute_cmd.c 2006-11-14 17:28:30 +0000 @@ -2672,6 +2672,7 @@ do_piping (pipe_in, pipe_out); + subshell_environment = 0; if (async) subshell_environment |= SUBSHELL_ASYNC; if (pipe_in != NO_PIPE || pipe_out != NO_PIPE) @@ -3418,6 +3419,7 @@ /* A subshell is neither a login shell nor interactive. */ login_shell = interactive = 0; + subshell_environment = 0; if (async) subshell_environment |= SUBSHELL_ASYNC; if (pipe_in != NO_PIPE || pipe_out != NO_PIPE)