/usr/share/freemat/help/text/ls.mdc is in freemat-help 4.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | LS LS List Files Function
Usage
Lists the files in a directory or directories. The general syntax for its use is
ls('dirname1','dirname2',...,'dirnameN')
but this can also be expressed as
ls 'dirname1' 'dirname2' ... 'dirnameN'
or
ls dirname1 dirname2 ... dirnameN
For compatibility with some environments, the function dir can also be used instead of ls. Generally speaking, dirname is any string that would be accepted by the underlying OS as a valid directory name. For example, on most systems, '.' refers to the current directory, and '..' refers to the parent directory. Also, depending on the OS, it may be necessary to ``escape'' the directory seperators. In particular, if directories are seperated with the backwards-slash character '\\', then the path specification must use double-slashes '\\\\'. Two points worth mentioning about the ls function:
- To get file-name completion to work at this time, you must use one of the first two forms of the command.
- If you want to capture the output of the ls command, use the system function instead.
|