Mercurial > hg > octave-nkf
comparison scripts/miscellaneous/unix.m @ 11469:c776f063fefe
Overhaul m-script files to use common variable name between code and documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 12:41:21 -0800 |
parents | be55736a0783 |
children | 1740012184f9 |
comparison
equal
deleted
inserted
replaced
11468:e1edf0ba3bcb | 11469:c776f063fefe |
---|---|
28 ## @end deftypefn | 28 ## @end deftypefn |
29 | 29 |
30 ## Author: octave-forge ??? | 30 ## Author: octave-forge ??? |
31 ## Adapted by: jwe | 31 ## Adapted by: jwe |
32 | 32 |
33 function [status, text] = unix (cmd, echo_arg) | 33 function [status, text] = unix (command, echo_arg) |
34 | 34 |
35 if (nargin < 1 || nargin > 2) | 35 if (nargin < 1 || nargin > 2) |
36 print_usage (); | 36 print_usage (); |
37 elseif (isunix ()) | 37 elseif (isunix ()) |
38 [status, text] = system (cmd); | 38 [status, text] = system (command); |
39 if (nargin > 1 || nargout == 0) | 39 if (nargin > 1 || nargout == 0) |
40 printf ("%s\n", text); | 40 printf ("%s\n", text); |
41 endif | 41 endif |
42 endif | 42 endif |
43 | 43 |