Use /bin/sh from exec()

This commit is contained in:
Ryan Dahl
2009-10-08 01:30:26 +02:00
parent 6219f2a2be
commit e46a832ded

View File

@@ -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();