Mercurial > hg > octave-lyh
diff src/toplev.cc @ 5659:960f4b9a26af
[project @ 2006-03-10 15:35:20 by jwe]
author | jwe |
---|---|
date | Fri, 10 Mar 2006 15:35:21 +0000 |
parents | c2f6b21851b8 |
children | 62734ddaf17b |
line wrap: on
line diff
--- a/src/toplev.cc +++ b/src/toplev.cc @@ -372,8 +372,8 @@ output_buf << OSSTREAM_ENDS; - retval(1) = (double) cmd_status; - retval(0) = OSSTREAM_STR (output_buf); + retval(0) = (double) cmd_status; + retval(1) = OSSTREAM_STR (output_buf); OSSTREAM_FREEZE (output_buf); } @@ -417,9 +417,9 @@ printf (\"%s\n\", system (cmd, 1));\n\ @end example\n\ \n\ -The @code{system} function can return two values. The first is any\n\ -output from the command that was written to the standard output stream,\n\ -and the second is the output status of the command. For example,\n\ +The @code{system} function can return two values. The first is the\n\ +exit status of the command and the second is any output from the\n\ +command that was written to the standard output stream. For example,\n\ \n\ @example\n\ [output, status] = system (\"echo foo; exit 2\");\n\