cechew@bruce.OZ (Earl Chew) (10/09/89)
The following 2 kits contain an updated version of my recently posted ls. I have addressed the `static' aliasing problem in Minix cc by moving the offending lines outside their local scopes. Hopefully this solves the problem. Long user and group names have been addressed by using %x.ys to truncate the names so that the pretty printing won't get mucked up. I have been using ls under BSD here on both the Pyramid and Sun systems for some time now. It compiles and runs ok (remember to define _BSD). Function prototypes have been inserted for those with ANSI compilers. Symbolic link processing is now working (well, to be best of my knowledge :-) I have been using it under BSD and it seems to print the right things. Symbolic link and other goodies will only get compiled in when S_IFLNK and friends are defined. Thus if they are defined and your system doesn't support them, or they aren't defined and your system does support them, you'll have to hack the code. There was a subtle bug with ., .. and the -a and -A switches. This has been fixed (again). I wonder if ls is in 1003.2? If so, I suppose I'll eventually make it comply with the standard. Enjoy. Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 ARPA: cechew%bruce.cs.monash.oz.au@uunet.uu.net ACS : cechew@bruce.oz ----------------------------------------------------------------------