when you create a directory then delete the directory it is in while in it
bash will mess up when you do cd ..
Repeat-By:
linux:~ # cd /
linux:/ # mkdir problem
linux:/ # cd problem
linux:/problem # mkdir new
linux:/problem # cd new
linux:/problem/new # rm -rf /problem
linux:/problem/new # cd ../
linux:/problem/new # rm -rf /problem
linux:/problem/new # cd ..
cd: could not get current directory: getcwd: cannot access parent
directories: No such file or directory
cd: could not get current directory: getcwd: cannot access parent
directories: No such file or directory
linux:. # cd ..
chdir: could not get current directory: getcwd: cannot access parent
directories: No such file or directory
linux:.. # cd ..
linux:../.. # cd ..
linux:../../.. # cd ..
linux:../../../.. # cd ..
linux:../../../../.. # pwd
../../../../..
linux:../../../../.. #
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
[Prev in Thread]
Current Thread
[Next in Thread]
removing parent directory messes up path,
b0iler _<=