Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site usceast.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!ncsu!ncrcae!usceast!ted From: ted@usceast.UUCP (Ted Nolan) Newsgroups: net.bugs.4bsd Subject: bug is 4.2 test(1) command Message-ID: <2051@usceast.UUCP> Date: Tue, 22-May-84 01:26:06 EDT Article-I.D.: usceast.2051 Posted: Tue May 22 01:26:06 1984 Date-Received: Wed, 23-May-84 19:02:26 EDT Organization: Csci Dept, U of S. Carolina, Columbia Lines: 34 Subject: Test(1) doesn't test directories for writeablilty correctly Index: /usr/src/bin/test.c 4.2BSD Description: test -w file, where file is a directory doesn't return true if the directory is writable. Repeat-By: Procedure to repeat the problem. $ mkdir foobar $ chmod 777 foobar $ if test -w foobar > then > echo yes > else > echo no > fi no This produces 'yes' on our version 7m system, so at one time in unix history the command worked properly. If you are installing S, you should note that the S shell script depends on this working correctly. I hope this isn't old hat, I didn't see it on the Mt Xinu buglist. Ted Nolan ..usceast!ted -- -------------------------------------------------------------------------------- Ted Nolan usceast!ted 6536 Brookside Circle Columbia, SC 29206 (feather the rast!) --------------------------------------------------------------------------------