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