Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site yale.ARPA Path: utzoo!linus!decvax!yale!dglasser From: dglasser@yale.ARPA (Danny Glasser) Newsgroups: net.bugs.4bsd Subject: Bug with $cwd in 4.2BSD csh Message-ID: <5299@yale.ARPA> Date: Fri, 5-Oct-84 12:57:11 EDT Article-I.D.: yale.5299 Posted: Fri Oct 5 12:57:11 1984 Date-Received: Sat, 6-Oct-84 06:36:52 EDT Distribution: net Organization: Yale University CS Dept., New Haven CT Lines: 29 Here's an interesting 4.2BSD csh bug: Let's say that /foo/lib/bar is a soft link to /usr/lib/bar (which is a directory), where /foo/lib and /usr/lib are distinct directories. I say the following: % cd /foo/lib/bar % pwd /usr/lib/bar % echo $cwd /foo/lib/bar % cd .. % pwd /usr/lib % echo $cwd /foo/lib Note that the "cwd" shell variable is not set properly. The problem is with the differing notions of what the parent directory is. [If this bug has already been reported and I missed it, I apologize for rebroadcasting it.] Danny Glasser {decvax,ima,allegra}!yale!dglasser Glasser-Daniel@YALE.ARPA DGLASSER@YALECS (BITNET)