Mercurial > hg > octave-nkf
diff scripts/miscellaneous/unix.m @ 19415:eeb2a01cdc26
doc: Improve docstrings for dos() and unix().
* dos.m, unix.m: State that Octave will wait (stall) on system command to
finish before returning status and output.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 05 Oct 2014 21:41:14 -0700 |
parents | d63878346099 |
children | 0e1f5a750d00 |
line wrap: on
line diff
--- a/scripts/miscellaneous/unix.m +++ b/scripts/miscellaneous/unix.m @@ -21,12 +21,15 @@ ## @deftypefnx {Function File} {@var{status} =} unix ("@var{command}") ## @deftypefnx {Function File} {[@var{status}, @var{text}] =} unix ("@var{command}") ## @deftypefnx {Function File} {[@dots{}] =} unix ("@var{command}", "-echo") -## Execute a system command if running under a Unix-like operating -## system, otherwise do nothing. Return the exit status of the program -## in @var{status} and any output from the command in @var{text}. +## Execute a system command if running under a Unix-like operating system, +## otherwise do nothing. +## +## Octave waits for the external command to finish before returning the exit +## status of the program in @var{status} and any output in @var{text}. +## ## When called with no output argument, or the @qcode{"-echo"} argument is ## given, then @var{text} is also sent to standard output. -## @seealso{dos, system, isunix, ispc} +## @seealso{dos, system, isunix, ismac, ispc} ## @end deftypefn ## Author: octave-forge ???