[17675] in Athena Bugs
sun4 8.3.26: pwd
daemon@ATHENA.MIT.EDU (Nickolai Zeldovich)
Thu Mar 16 19:58:08 2000
Message-Id: <200003170058.TAA15901@pepsi.mit.edu>
To: bugs@MIT.EDU
Date: Thu, 16 Mar 2000 19:58:02 -0500
From: Nickolai Zeldovich <kolya@MIT.EDU>
System name: pepsi.mit.edu
Type and version: SPARC/5 8.3.26 (with mkserv)
Display type: cgsix
Shell: /bin/athena/tcsh
Window manager: ctwm -f .ctwmrc.8bpp
What were you trying to do?
Trying to move directories around in AFS.
What's wrong:
Something gets confused and as a result, pwd fails in the moved
directory. This happens for pwd both in /usr/bin and in the gnu
locker, but not for the built-in pwd in bash. Here's what happens:
contents-vnder-pressvre~1> fs flushv .
contents-vnder-pressvre~2> mkdir -p foo/bar
contents-vnder-pressvre~3> cd foo/bar
contents-vnder-pressvre~/foo/bar4> /usr/bin/pwd
/afs/athena.mit.edu/user/k/o/kolya/foo/bar
contents-vnder-pressvre~/foo/bar5> cd ..
contents-vnder-pressvre~/foo6> mv bar ../
contents-vnder-pressvre~/foo7> cd ../bar
contents-vnder-pressvre~/bar8> /usr/bin/pwd
pwd: cannot determine current directory!
What should have happened:
I should have been able to get the current working directory,
even if the directory has been previously moved.
Please describe any relevant documentation references:
mv(1)