error in documentation ?

Alain Baeckeroot alain.baeckeroot at laposte.net
Sat Mar 21 12:15:57 CDT 2009


Dear all

I think there is an arror in documentation, wrt 'system' function :
 GNU Octave, version 3.0.1
 Octave was configured for "i486-pc-linux-gnu".

http://www.math.utah.edu/docs/info/octave_26.html    says :
[output, status] = system ("echo foo; exit 2");

But it seems the order is the opposite:
octave:20> [output, status] = system ("echo foo; exit 2")
output =  2
status = foo

This is annoying as one cannot get directly the ouput.

Regards.
Alain



More information about the Help-octave mailing list