[1239] in Athena Bugs
$cwd in csh
daemon@ATHENA.MIT.EDU (John Carr)
Tue Oct 25 20:37:55 1988
To: bugs@ATHENA.MIT.EDU
Date: Tue, 25 Oct 88 20:37:34 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>
I think it is reasonable to expect csh to keep track of the directory
name in the following example. My prompt is "%d > ", and I verified that
it was the same as $cwd at all times.
/mit/jfc > mkdir test1 test2
/mit/jfc > cd test1
/mit/jfc/test1 > mv ../test1 ../test2/
/mit/jfc/test1 > pwd #I understand why it's wrong here,
#since it hasn't had reason to set cwd
/mit/jfc/test2/test1
/mit/jfc/test1 > cd ..
/mit/jfc/test2 > cd test1
/mit/jfc/test1 > pwd #This is wrong. It is where pwd
/mit/jfc/test2/test1 #says it is and should know it.
--John Carr