Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!david From: david@utzoo.UUCP (David Trueman) Newsgroups: hacknews Subject: openable(1) arrives Message-ID: <3699@utzoo.UUCP> Date: Fri, 30-Mar-84 17:16:23 EST Article-I.D.: utzoo.3699 Posted: Fri Mar 30 17:16:23 1984 Date-Received: Fri, 30-Mar-84 17:16:23 EST Organization: U of Toronto Zoology Lines: 8 Openable is used to test whether a file can be opened for reading, writing or both. Its behaviour is that of the V7 test(1) using the "-r" or "-w" options (except that test(1) did not provide for opening for read and write). The System 5 builtin "test", however, uses access(2) rather than open(2), so the behaviour is different for directories or devices. -- David Trueman @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!david