59adf7
diff --git a/src/cmd/ksh93/sh/xec.c b/src/cmd/ksh93/sh/xec.c
59adf7
--- a/src/cmd/ksh93/sh/xec.c
59adf7
+++ b/src/cmd/ksh93/sh/xec.c
59adf7
@@ -3529,7 +3529,7 @@ int sh_funscope(int argn, char *argv[],int(*fun)(void*),void *arg,int execflg)
59adf7
 	}
59adf7
 	if(jmpval)
59adf7
 		r=shp->exitval;
59adf7
-	if(r>SH_EXITSIG && ((r&SH_EXITMASK)==SIGINT || ((r&SH_EXITMASK)==SIGQUIT)))
59adf7
+	if(r>SH_EXITSIG && ((r&SH_EXITMASK)==SIGINT || ((r&SH_EXITMASK)==SIGQUIT) || (getenv("_AST_KSH_SIGNAL_BUBBLE"))))
59adf7
 		kill(getpid(),r&SH_EXITMASK);
59adf7
 	if(jmpval > SH_JMPFUN)
59adf7
 	{