[comp.os.minix] Posixfied ls

cechew@bruce.cs.monash.OZ.AU (Earl Chew) (09/18/90)

Here is a new version of ls(1) for you to try. It has undergone beta test and
appears to be stable. Please read the manual page. I haven't made a Minix style
man page yet.

Some improvements over the last version which come to mind:

1. -s option for block devices now prints the raw size
2. sort routine reworked
3. printing reworked slightly
4. COLUMNS (Posix) and termcap support (Posix optional)
5. -q option forced for output to terminals (Posix optional)
6. symbolic link support reworked (again)

Unfortunately, there are lots of symbols dragged in by the header files. Some
compilers require two passes to compile ls. Look in the makefile and you'll get
the idea. 16 bit bcc is one compiler that requires two bites at the cherry.

Remember to chmem to give ls a fighting chance with those big directories.
Not using options which require a stat() to be done will also help listing big
directories.

Earl
-- 
Earl Chew, Dept of Computer Science, Monash University, Australia 3168
EMAIL: cechew@bruce.cs.monash.edu.au PHONE: 03 5655447 FAX: 03 5655146
----------------------------------------------------------------------