Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

verbatim args

windows verbatim args option enabled
  • Loading branch information...
commit 2ec7ed4c5414c7cc07b2515cd836120238212948 1 parent 97694c1
@speier speier authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/spawn-command.js
View
5 lib/spawn-command.js
@@ -1,10 +1,13 @@
+var util = require('util');
var spawn = require('child_process').spawn;
module.exports = function (command, options) {
var file, args;
if (process.platform === 'win32') {
file = 'cmd.exe';
- args = ['/s', '/c', command];
+ args = ['/s', '/c', '"' + command + '"'];
+ options = util._extend({}, options);
+ options.windowsVerbatimArguments = true;
}
else {
file = '/bin/sh';
Please sign in to comment.
Something went wrong with that request. Please try again.