Mercurial > hg > octave-lyh
comparison scripts/miscellaneous/ls_command.m @ 6117:45e37d4f324e
[project @ 2006-10-27 21:41:54 by jwe]
author | jwe |
---|---|
date | Fri, 27 Oct 2006 21:41:54 +0000 |
parents | bade9ff1814b |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
6116:b64fb24bf4a0 | 6117:45e37d4f324e |
---|---|
32 global __ls_command__; | 32 global __ls_command__; |
33 | 33 |
34 if (isempty (__ls_command__)) | 34 if (isempty (__ls_command__)) |
35 ## FIXME -- ispc and isunix both return true for Cygwin. Should they? | 35 ## FIXME -- ispc and isunix both return true for Cygwin. Should they? |
36 if (ispc () && ! isunix () && isempty (file_in_path (EXEC_PATH, "ls"))) | 36 if (ispc () && ! isunix () && isempty (file_in_path (EXEC_PATH, "ls"))) |
37 __ls_command__ = "cmd /C dir /w"; | 37 __ls_command__ = "cmd /C dir /D"; |
38 else | 38 else |
39 __ls_command__ = "ls -C"; | 39 __ls_command__ = "ls -C"; |
40 endif | 40 endif |
41 endif | 41 endif |
42 | 42 |