From fa5c2d2c4ee520e3e20d71c5f5c648ea82d1e27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Tue, 5 Jun 2012 19:32:20 +0200 Subject: [PATCH] Correct the documentation of io.system(). --- common/modules/io.jsm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/modules/io.jsm b/common/modules/io.jsm index 6834ba6c..8fe4a2c3 100644 --- a/common/modules/io.jsm +++ b/common/modules/io.jsm @@ -470,10 +470,12 @@ var IO = Module("io", { // TODO: when https://bugzilla.mozilla.org/show_bug.cgi?id=68702 is // fixed use that instead of a tmpfile /** - * Runs *command* in a subshell and returns the output in a string. The - * shell used is that specified by the 'shell' option. + * Runs *command* in a subshell and returns the output. The shell used is + * that specified by the 'shell' option. * - * @param {string} command The command to run. + * @param {string|[string]} command The command to run. This can be a shell + * command string or an array of strings (a command and arguments) + * which will be escaped and concatenated. * @param {string} input Any input to be provided to the command on stdin. * @param {function(object)} callback A callback to be called when * the command completes. @optional