summaryrefslogtreecommitdiff
path: root/devel/gmake/patches/patch-src_job.c
blob: d0f5ab2f68c5a42b12d22ef0e22f2afcaf2c5570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-src_job.c,v 1.2 2022/11/17 23:51:33 wiz Exp $

If we bootstrap pkgsrc with a different shell, use it.

Add our bootstrap shells to the POSIX-compatible list, required for correct
operation of .ONESHELL mode.

--- src/job.c.orig	2022-10-31 06:23:04.000000000 +0000
+++ src/job.c
@@ -79,7 +79,11 @@ char * vms_strsignal (int status);
 
 #else
 
+#ifdef PKGSRC_DEFAULT_SHELL
+const char *default_shell = PKGSRC_DEFAULT_SHELL;
+#else
 const char *default_shell = "/bin/sh";
+#endif
 int batch_mode_shell = 0;
 
 #endif
@@ -441,6 +445,8 @@ is_bourne_compatible_shell (const char *
     "bash",
     "dash",
     "ksh",
+    "mksh",
+    "pdksh",
     "rksh",
     "zsh",
     "ash",