diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2009-10-08 01:30:26 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-10-08 01:30:26 +0200 |
commit | e46a832ded249b44ea94523a796c4e2847a104ab (patch) | |
tree | 1b2f567bd3ea8a3db01c53548e1d787cbbfc0ae7 /lib/utils.js | |
parent | 6219f2a2be07e0b428d8d4f14e2c4bd32001cb5b (diff) | |
download | node-new-e46a832ded249b44ea94523a796c4e2847a104ab.tar.gz |
Use /bin/sh from exec()
Diffstat (limited to 'lib/utils.js')
-rw-r--r-- | lib/utils.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/utils.js b/lib/utils.js index d33d504e17..f85bb15fdb 100644 --- a/lib/utils.js +++ b/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(); |