Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

verbatim args

windows verbatim args option enabled
  • Loading branch information...
commit 2ec7ed4c5414c7cc07b2515cd836120238212948 1 parent 97694c1
Kalman Speier speier authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 lib/spawn-command.js
5 lib/spawn-command.js
... ... @@ -1,10 +1,13 @@
  1 +var util = require('util');
1 2 var spawn = require('child_process').spawn;
2 3
3 4 module.exports = function (command, options) {
4 5 var file, args;
5 6 if (process.platform === 'win32') {
6 7 file = 'cmd.exe';
7   - args = ['/s', '/c', command];
  8 + args = ['/s', '/c', '"' + command + '"'];
  9 + options = util._extend({}, options);
  10 + options.windowsVerbatimArguments = true;
8 11 }
9 12 else {
10 13 file = '/bin/sh';

0 comments on commit 2ec7ed4

Please sign in to comment.
Something went wrong with that request. Please try again.