We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents df8828f + 10dbdbc commit 1025b44Copy full SHA for 1025b44
utils.js
@@ -7,7 +7,7 @@ var shellQuote = require('shell-quote');
7
// We assume that Windows provides COMSPEC env variable
8
// and other platforms provide SHELL env variable
9
var SHELL_PATH = process.env.SHELL || process.env.COMSPEC;
10
-var EXECUTE_OPTION = process.env.COMSPEC !== undefined ? '/c' : '-c';
+var EXECUTE_OPTION = process.env.COMSPEC !== undefined && process.env.SHELL === undefined ? '/c' : '-c';
11
12
// XXX: Wrapping tos to a promise is a bit wrong abstraction. Maybe RX suits
13
// better?
0 commit comments