Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!rutgers!sri-spam!sri-unix!hplabs!hpcea!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: net.unix Subject: Re: Bourne Shell Bug ( test ops ) Message-ID: <110006@hpfcdc.HP.COM> Date: Mon, 27-Oct-86 18:50:00 EST Article-I.D.: hpfcdc.110006 Posted: Mon Oct 27 18:50:00 1986 Date-Received: Tue, 28-Oct-86 21:27:05 EST References: <342@xios.UUCP> Organization: HP Ft. Collins, Co. Lines: 15 > This is a difficult call. "test" solves it in the most straightforward > fashion, by just reporting the results of the "access" system call. I agree that the implementation of test(1) is reasonable. I think that the behavior of access(2) should be considered a bug. When checking for execute permission on a non-directory (or an ordinary file, execute permission on other types is a don't care), it should use the same rules as exec, requiring at least one execute bit to be set. I know of no advantage to the current behavior (other than making the kernel code slightly simpler). The IEEE P1003 working group has recently decided to require this behavior, despite the fact that most current implementations don't work this way. Bob Lenk {hplabs, ihnp4}!hpfcla!rml