home *** CD-ROM | disk | FTP | other *** search
-
- This version of 'ls' is extremely compatible with Un*x (SVR3.2) as
- I understand it, and still provides a couple of useful extensions
- for MS-DOS and OS/2.
-
- Two versions are included, LS.DOS for MS-DOS and LS.OS2 for OS/2.
- Rename the one you need to LS.EXE. I tried to build a version that
- would run on both systems, but there is a painful difference in
- their directory access mechanisms related to recursive traversal
- of directories. Ptui.
-
- Both versions recognizes 'sh'-style filename patterns, and can
- even handle things like:
- ls -lt c:/src/*/makefile
- Backslashes quote only (') and ("), otherwise they are passed through
- unchanged. Both single and double quotes are recognized.
-
- Two popular forms of passing long command lines are supported:
- MKS arguments:
- Arguments passed in the environment (as ~arg) are collected
- into a command line (maximum 4096 bytes).
- 4DOS arguments:
- The environment variable CMDLINE, if found, is used as the
- actual command line.
-
- The expansion of filename patterns is not performed until after the
- correct command line is found. This is handy for shells or other
- tools that wish to pass long command lines without performing the
- expansion themselves (more important in other tools than here).
-
- The documentation is provided in two forms: LS.DOC and LS.MAN. The
- first is the plain ASCII version of the second, which is formatted
- with backspaces and overstrikes for printing or viewing with LESS,
- or some other clever pager. The program also responds to a '-h'
- argument by writing an expanded usage message to the standard
- output. Like so:
-
- ls.exe - list directories
- Copyright (c) 1991 Frank Whaley All rights reserved.
- Usage : ls [-aAbcCdfFghilmnopqrRstux] [filename]...
- -a: show all files, even those normally hidden
- -A: show all files except . and ..
- -b: show non-graphic chars as \ddd
- -c: use creation time
- -C: multi-column output, sorted vertically
- -d: treat directories as plain files
- -f,-g,-i: not supported
- -F: mark directories with '/' and executables with '*'
- -h: display this message
- -l: long listing format
- -m: stream output, separated by commas
- -n,-o: not supported
- -p: mark directories with '/'
- -q: show non-graphic chars as ?
- -r: reverse order of sort
- -R: recurse through sub-directories
- -s: display size
- -t: sort by time stamp
- -u: use last access time
- -x: multi-column output, sorted horizontally
-
- As the programs and documentation say, they are copyrighted material
- but are freely distributable.
-
- Bugs, comments or even insults can be mailed to:
-
- Frank Whaley
- Software Engineer
- Gupta Technologies
- few@gupta.com
-