Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!hp4nl!eutrc3!wsincc From: wsincc@eutrc3.urc.tue.nl (Wim van Dorst) Newsgroups: comp.os.minix Subject: Re: New, featureful ls(1) for Minix Summary: great, but two flaws Message-ID: <812@eutrc3.urc.tue.nl> Date: 25 Jul 89 11:39:13 GMT References: <13398@ea.ecn.purdue.edu> Organization: Eindhoven University of Technology, The Netherlands Lines: 28 Hello World, Recently Mr. Housel submitted a ls which does columnar output and other nice things like not showing .foo files. I compiled it with no errors under 1.4a and found then the following two flaws. When there are old files in a directory it should give as response to ls -l the year of creation instead if the time. Using for that localtime() it gives the year 3882 instead of 1982. My localtime() returns the year in 19xx format, but ls.c assumes it to be in a xx format and adds 1900. Easily fixed though. The other flaw is that when doing a ls (with or without options) _without_ arguments (like *.c or whatever) on a directory with quite some entries it just does nothing. No error and no result. When doing ls (with or without options, with or without arguments) on a directory with 1 to 40 entries it works perfect. I have no idea why. Who does? Probably not a flaw but I noticed: When doing ls -l on an empty directory, shouldn't ls print something like total 0? Problably not a flaw either: when doing ls -lF should the -F option be ignored? Hoping for some response, met vriendelijke groeten, Wim van Dorst (wsincc@tuerc3.urc.tue.nl)