Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site rayssd.UUCP
Path: utzoo!watmath!clyde!floyd!harpo!ulysses!allegra!rayssd!ras
From: ras@rayssd.UUCP
Newsgroups: net.unix
Subject: Re: more csh path
Message-ID: <424@rayssd.UUCP>
Date: Thu, 8-Mar-84 12:22:22 EST
Article-I.D.: rayssd.424
Posted: Thu Mar  8 12:22:22 1984
Date-Received: Sat, 10-Mar-84 08:35:59 EST
Organization: Raytheon Co., Portsmouth RI
Lines: 25

A while back, (on 4.1 BSD csh) I noticed a rather peculiar
phenomenon with the "cd" command and C shell variables;

If you happen to have a non-accesible directory by the name of one of
the variables, (such as "path", "cdpath", "home", etc.) in your current
directory, and you try and "cd" into it, you will actually end up in
the directory specified in the variable, for example:

% mkdir path
% chmod 007 path
% set path = ( /usr/local/bin $path )
% cd path
/usr/local/bin
% pwd
/usr/local/bin

This also happens on a non-existent directory, and does print
the directory that you landed in (a la cdpath).

I never bothered to find where this was going wrong, or if it was
just another feature, but was wondering if the same thing exists
in 4.2BSD.
-- 
Ralph Shaw,		{allegra, decvax!brunix, ccieng5}!rayssd!ras
Raytheon Co,		 Submarine Signal Div., Portsmouth, RI