We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
/bin/sh
1 parent be2463a commit 4d44e99Copy full SHA for 4d44e99
src/os/posix/host-lib.c
@@ -982,11 +982,7 @@ static inline REBOOL Open_Pipe_Fails(int pipefd[2]) {
982
const char ** argv_new = NULL;
983
sh = getenv("SHELL");
984
if (sh == NULL) {
985
- int err = 2; /* shell does not exist */
986
- if(write(info_pipe[W], &err, sizeof(err)) == -1) {
987
- //nothing there... just to avoid "unused-result" compiler warning
988
- }
989
- exit(EXIT_FAILURE);
+ sh = "/bin/sh"; // if $SHELL is not defined
990
}
991
argv_new = OS_Make((argc + 3) * sizeof(char*));
992
argv_new[0] = sh;
0 commit comments