Functions | |
if (isempty(__ls_command__)||!ischar(__ls_command__)) ls_command() | |
endif | if (iscellstr(varargin)) args |
if (page_screen_output()||nargout > 0)[status | |
if (status==0) if(nargout | |
endif else | error ("ls: command exited abnormally with status %d", status) |
endif else | system (cmd) |
endif else | error ("ls: expecting all arguments to be character strings") |
endif endfunction!error | ls (1) |
Variables | |
function | retval |
cmd = sprintf ("%s ", __ls_command__, args{:}) | |
output = system (cmd) |
if | ( | status | = =0 |
) |
if | ( | page_screen_output()|| | nargout, | |
0 | ||||
) |
endif if | ( | iscellstr(varargin) | ) |
if | ( | isempty(__ls_command__)||!ischar(__ls_command__) | ) |
endif endfunction !error ls | ( | 1 | ) |
else retval |
Initial value:
ls (varargin) global __ls_command__