summaryrefslogtreecommitdiff
path: root/lib/spawni.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-10-05 01:38:46 +0200
committerBruno Haible <bruno@clisp.org>2018-10-05 01:38:46 +0200
commit1ffc70c32c4f94d732d7a5cba4454eb6b65bbe5d (patch)
tree524bde2d33f855881519ec69e9a424c4a8987685 /lib/spawni.c
parent050357c685fe979819ef1ff258d80ce173b1317d (diff)
downloadgnulib-1ffc70c32c4f94d732d7a5cba4454eb6b65bbe5d.tar.gz
sh-filename: New module.
* m4/sh-filename.m4: New file. * modules/sh-filename: New file. * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding "/bin/sh". * tests/test-posix_spawn1.c (main): Likewise. * tests/test-posix_spawn2.c (main): Likewise. * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj, is_envjavac_gcj43): Likewise. * lib/javaexec.c (execute_java_class): Likewise. * modules/posix_spawn-internal (Depends-on): Add sh-filename. * modules/posix_spawnp-tests (Depends-on): Likewise. * modules/javacomp (Depends-on): Likewise. * modules/javaexec (Depends-on): Likewise.
Diffstat (limited to 'lib/spawni.c')
-rw-r--r--lib/spawni.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spawni.c b/lib/spawni.c
index bd49cc88ad..05dc8b46e5 100644
--- a/lib/spawni.c
+++ b/lib/spawni.c
@@ -32,7 +32,7 @@
#if _LIBC || HAVE_PATHS_H
# include <paths.h>
#else
-# define _PATH_BSHELL "/bin/sh"
+# define _PATH_BSHELL BOURNE_SHELL
#endif
#include <signal.h>