changeset 19247:d627d9c8adfd

ls_command.m: Overhaul function. * ls_command.m: Make error message more succinct. Add BIST test.
author Rik <rik@octave.org>
date Sat, 04 Oct 2014 19:39:12 -0700
parents b85d4930528d
children 8cc4a9bb253b
files scripts/miscellaneous/ls_command.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/miscellaneous/ls_command.m	Sat Oct 04 19:36:41 2014 -0700
+++ b/scripts/miscellaneous/ls_command.m	Sat Oct 04 19:39:12 2014 -0700
@@ -47,7 +47,7 @@
       if (ischar (cmd))
         __ls_command__ = cmd;
       else
-        error ("ls_command: expecting argument to be a character string");
+        error ("ls_command: argument must be a character string");
       endif
     endif
 
@@ -65,3 +65,5 @@
 %!   assert (cmd(1:2), "ls"); 
 %! endif
 
+%!error <argument must be a character string> ls_command (123)
+