Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site whuxl.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!mike From: mike@whuxl.UUCP (BALDWIN) Newsgroups: net.unix-wizards Subject: Re: unix quirks (chmod 000 dir) Message-ID: <595@whuxl.UUCP> Date: Sun, 21-Apr-85 13:56:17 EST Article-I.D.: whuxl.595 Posted: Sun Apr 21 13:56:17 1985 Date-Received: Mon, 22-Apr-85 02:27:17 EST References: <9938@brl-tgr.ARPA> <1135@amdcad.UUCP> Organization: /usr/exptools/lib/netnews/myorg Lines: 25 > >>% mkdir foo > >>% chmod 000 foo > >>% cd foo > >>foo: no such file or directory >You don't seem to understand: it shouldn't say: "no such file or directory", >it should say: "Permission denied." The example, was just that, an example. Sorry, folks, but the REAL answer to this is the cdpath variable. If it can't chdir somewhere, csh will go down $cdpath, and the error message you end up getting is that of the LAST component in cdpath: % mkdir rc % chmod 0 rc % set cdpath = (. /etc) % cd rc rc: Not a directory % set cdpath = (/etc .) % cd rc rc: Permission denied If cdpath is unset, you will always get the "right" error message. Michael Baldwin AT&T Bell Labs harpo!whuxl!mike