Permalink
Browse files

verbatim args

windows verbatim args option enabled
  • Loading branch information...
speier committed Nov 6, 2012
1 parent 97694c1 commit 2ec7ed4c5414c7cc07b2515cd836120238212948
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/spawn-command.js
View
@@ -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';

0 comments on commit 2ec7ed4

Please sign in to comment.