Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!fortune!rpw3 From: rpw3@fortune.UUCP Newsgroups: net.unix Subject: Re: more csh path - (nf) Message-ID: <2732@fortune.UUCP> Date: Fri, 9-Mar-84 23:06:47 EST Article-I.D.: fortune.2732 Posted: Fri Mar 9 23:06:47 1984 Date-Received: Sat, 10-Mar-84 13:00:46 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 28 #R:sri-arpa:-1698600:fortune:26900030:000:956 fortune!rpw3 Mar 9 20:01:00 1984 No matter what you think of this "feature", the automatic dereferencing of shell variables in the context of a 'cd' command is at least documented, as the following edited excerpt from the man page shows: +-------------------- | cd | cd name | Change the shells working directory to directory name. | If no argument is given then change to the home direc- | tory of the user. | If name is not found as a subdirectory of the current | directory (and does not begin with `/', `./' or `../'), | then each component of the variable cdpath is checked | to see if it has a subdirectory name. Finally, if all ====> | else fails but name is a shell variable whose value | begins with `/', then this is tried to see if it is a | directory. +-------------------- Rob Warnock UUCP: {sri-unix,amd70,hpda,harpo,ihnp4,allegra}!fortune!rpw3 DDD: (415)595-8444 USPS: Fortune Systems Corp, 101 Twin Dolphin Drive, Redwood City, CA 94065