@@ -27,6 +27,10 @@ Think ShellJS is cool? Check out some related projects (like
2727[ cash] ( https://github.com/dthree/cash ) --a javascript-based POSIX shell)
2828in our [ Wiki page] ( https://github.com/shelljs/shelljs/wiki ) !
2929
30+ Upgrading from an older version? Check out our [ breaking
31+ changes] ( https://github.com/shelljs/shelljs/wiki/Breaking-Changes ) page to see
32+ what changes to watch out for while upgrading.
33+
3034## Command line use
3135
3236If you just want cross platform UNIX commands, checkout our new project
@@ -546,9 +550,9 @@ exec('some_long_running_process', function(code, stdout, stderr) {
546550```
547551
548552Executes the given ` command ` _ synchronously_ , unless otherwise specified. When in synchronous
549- mode returns the object ` { code:..., stdout:... , stderr:... } ` , containing the program's
550- ` stdout ` , ` stderr ` , and its exit ` code ` . Otherwise returns the child process object,
551- and the ` callback ` gets the arguments ` (code, stdout, stderr) ` .
553+ mode, this returns a ShellString (compatible with ShellJS v0.6.x, which returns an object
554+ of the form ` { code:..., stdout:... , stderr:... } ` ) . Otherwise, this returns the child process
555+ object, and the ` callback ` gets the arguments ` (code, stdout, stderr) ` .
552556
553557** Note:** For long-lived processes, it's best to run ` exec() ` asynchronously as
554558the current synchronous implementation uses a lot of CPU. This should be getting
0 commit comments