Skip to content

Commit 81b91cf

Browse files
committed
Fix JRUBY-5858: "zsh:1 no matches found" when using gems loaded via Git in Bundler
* MRI unconditionally uses /bin/sh for shelling out on UNIX.
1 parent 9e14579 commit 81b91cf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

argparser.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,7 @@ void ArgParser::prepareOptions() {
356356
#ifdef WIN32
357357
option += "cmd.exe";
358358
#else
359-
const char* shell = getenv("SHELL");
360-
if (shell == NULL) {
361-
shell = "/bin/sh";
362-
}
363-
option += shell;
359+
option += "/bin/sh";
364360
#endif
365361
javaOptions.push_back(option);
366362

0 commit comments

Comments
 (0)