[comp.os.minix] Bug in test.

peterc@suite.sw.oz.au (Peter Chubb) (03/15/91)

The manual :-) entry for test says that -x file should test the file
for executability.  Instead, -x always returns true, even if the file
doesn't exist.

The fix is fairly obvious on examining the source, but I haven't been
able to test it yet, as I still can't get the compiler to work.   cg
keeps dying, even on trivial hello world programs, with sig 11.


By the way, why is it that execute permission is necessary but not
sufficient to allow program execution? (i.e., why is a binary a.out
file, mode 111, not executable?). This was a great surprise to me.


			Regards,

				- Peter Chubb

Softway Pty Ltd, P.O. Box 305, Strawberry Hills, NSW 2012, AUSTRALIA
Phone: +61 2 698 2322;       Fax: +61 2 699 9174;     Telex: AA27987
Internet: peterc@softway.oz.au	   UUCP: ...!uunet!softway.oz!peterc