Mercurial > octave
diff scripts/miscellaneous/ls.m @ 21634:96518f623c91
Backed out changeset dcf8922b724b
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 20 Apr 2016 11:06:03 -0700 |
parents | dcf8922b724b |
children | bac0d6f07a3e |
line wrap: on
line diff
--- a/scripts/miscellaneous/ls.m Wed Apr 20 17:53:10 2016 +0200 +++ b/scripts/miscellaneous/ls.m Wed Apr 20 11:06:03 2016 -0700 @@ -98,7 +98,7 @@ if (status != 0) error ("ls: command exited abnormally with status %d\n", status); elseif (nargout == 0) - fputs (output); + puts (output); else retval = strvcat (regexp (output, "[\r\n]+", "split"){:}); endif @@ -131,3 +131,4 @@ %!error <all arguments must be character strings> ls (1) ## Test below is valid, but produces confusing output on screen %!#error <command exited abnormally> ls ("-!") +