Browse Source

Use /bin/sh from exec()

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
e46a832ded
  1. 10
      lib/utils.js

10
lib/utils.js

@ -44,15 +44,7 @@ exports.p = function (x) {
};
exports.exec = function (command) {
// TODO TODO TODO
// The following line needs to be replaced with proper command line
// parsing. at the moment quoted strings will not be picked up as a single
// argument.
var args = command.split(/\s+/);
var file = args.shift();
var child = node.createChildProcess(file, args);
var child = node.createChildProcess("/bin/sh", ["-c", command]);
var stdout = "";
var stderr = "";
var promise = new node.Promise();

Loading…
Cancel
Save