Merge branch 'js/spawn-via-shell-path-fix'
Mops up an unfortunate fallout from bw/spawn-via-shell-path topic. By Johannes Sixt * js/spawn-via-shell-path-fix: Do not use SHELL_PATH from build system in prepare_shell_cmd on Windows
This commit is contained in:
commit
8cc5223495
@ -156,7 +156,11 @@ static const char **prepare_shell_cmd(const char **argv)
|
||||
die("BUG: shell command is empty");
|
||||
|
||||
if (strcspn(argv[0], "|&;<>()$`\\\"' \t\n*?[#~=%") != strlen(argv[0])) {
|
||||
#ifndef WIN32
|
||||
nargv[nargc++] = SHELL_PATH;
|
||||
#else
|
||||
nargv[nargc++] = "sh";
|
||||
#endif
|
||||
nargv[nargc++] = "-c";
|
||||
|
||||
if (argc < 2)
|
||||
|
Loading…
Reference in New Issue
Block a user