changeset 18182:0490de623fa0

maint: Use Octave coding conventions in cset 1e9cb13faa7a. * ls.m: Use Octave coding conventions in cset 1e9cb13faa7a.
author Rik <rik@octave.org>
date Tue, 31 Dec 2013 15:31:15 -0800
parents 05a53cc522b7
children 6e0686858b6a
files scripts/miscellaneous/ls.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/miscellaneous/ls.m	Wed Dec 25 10:46:42 2013 -0200
+++ b/scripts/miscellaneous/ls.m	Tue Dec 31 15:31:15 2013 -0800
@@ -61,15 +61,15 @@
   if (nargin > 0)
     args = tilde_expand (varargin);
     is_dos = (ispc () && ! isunix ());
-    if is_dos
+    if (is_dos)
       optsep = "/";
     else
       optsep = "-";
     endif
     idx = ! strncmp (args, optsep, 1);
     ## Enclose paths, potentially having spaces, in double quotes:
-    args(idx) = strcat ("\"", args(idx), "\"");    
-    if is_dos
+    args(idx) = strcat ('"', args(idx), '"');    
+    if (is_dos)
       ## shell (cmd.exe) on MinGW uses '^' as escape character
       args = regexprep (args, '([^\w.*? -])', '^$1');
       ## Strip UNIX directory character which looks like an option to dir cmd.