From 5e61eaf855dc4bc94c35e9e950fb2e1d7f88d5af Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 4 Mar 2017 15:25:17 -0800 Subject: 40654: exit cleanly from special POSIXBUILTINS in subshells This patch overloads the zsh_subshell counter which is meant for $ZSH_SUBSHELL, but no one has suggested a working alternate test. --- Src/exec.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index 83d1513d0..6af4ddbf3 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3996,6 +3996,7 @@ execcmd_exec(Estate state, Execcmd_params eparams, * classify as a builtin) we treat all errors as fatal. * The "command" builtin is not special so resets this behaviour. */ + forked |= zsh_subshell; fatal: if (redir_err || errflag) { if (!isset(INTERACTIVE)) { -- cgit 1.4.1