diff --git a/contrib/bmake/compat.c b/contrib/bmake/compat.c index 35860485581c..797862eb8031 100644 --- a/contrib/bmake/compat.c +++ b/contrib/bmake/compat.c @@ -340,7 +340,7 @@ again: /* * The following work for any of the builtin shell specs. */ - if (shellErrFlag) { + if (errCheck && shellErrFlag) { shargv[shargc++] = shellErrFlag; } if (DEBUG(SHELL))