summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-09-29 00:02:04 +0000
committerjmallett <jmallett@FreeBSD.org>2002-09-29 00:02:04 +0000
commit539e643c0d6b8db4898c0ab1148ea879cf720d56 (patch)
treee6609427066df6c96928fd0a2d9a5893bff12ec9 /usr.bin/make
parentdcb8c4ceff0bd610db2b4feec903981b0a3800cb (diff)
downloadFreeBSD-src-539e643c0d6b8db4898c0ab1148ea879cf720d56.zip
FreeBSD-src-539e643c0d6b8db4898c0ab1148ea879cf720d56.tar.gz
Fix ability to use csh(1) as the make(1) shell.
Sponsored by: Bright Path Solutions
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 5b55fea8..846c8ca 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1049,7 +1049,9 @@ Cmd_Exec(cmd, error)
(void) dup2(fds[1], 1);
(void) close(fds[1]);
-#if DEFSHELL == 1
+#if defined(DEFSHELL) && DEFSHELL == 0
+ (void) execv("/bin/csh", args);
+#elif DEFSHELL == 1
(void) execv("/bin/sh", args);
#elif DEFSHELL == 2
(void) execv("/bin/ksh", args);
OpenPOWER on IntegriCloud