# HG changeset patch # User Rik # Date 1412476752 25200 # Node ID d627d9c8adfdddf69115717b3aaf2274fc35d27a # Parent b85d4930528ddf7e87efb2fba1913b9aec5b01e6 ls_command.m: Overhaul function. * ls_command.m: Make error message more succinct. Add BIST test. diff -r b85d4930528d -r d627d9c8adfd scripts/miscellaneous/ls_command.m --- 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 ls_command (123) +