scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 98db42fa6b98511c3705583498a831fedda06d9e
parent 1c67eb4e167bfe404334b9cf8e4ea0b3770b6fc2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 13:14:33 +0100

make: Fix -e condition in launch()

When the ignore flag is set then the option -e should not
be passed to the shell, but the condition was the inverse.

Diffstat:
Msrc/cmd/make/posix.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/make/posix.c b/src/cmd/make/posix.c @@ -33,7 +33,7 @@ launch(char *cmd, int ignore) case 0: shell = getmacro("SHELL"); - if (!ignore) + if (ignore) args[1] = "-c"; if ((name = strrchr(shell, '/')) != NULL) ++name;