Bug with $cwd in 4.2BSD csh
Danny Glasser
dglasser at yale.ARPA
Sat Oct 6 02:57:11 AEST 1984
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 at YALE.ARPA
DGLASSER at YALECS (BITNET)
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list