GNOME Bugzilla – Bug 300925
gnome-terminal is tricked to get into a different directory.
Last modified: 2005-05-08 11:05:48 UTC
Distribution/Version: Gentoo 1. In nautilus create a new folder, say 'fld' 2. In folder fld create a new file, say myfile 3. Open terminal, cd to fld and do echo "1" > myfile 4. Without closing terminal, return to nautilus and move folder fld into any other directory, say tmp/ 5. Recreate folder fld and file myfile (steps 1 and 2) 6. Return to terminal window and type echo "2" > myfile (plz note value of pwd here) 7. Compare files $HOMEFOLDER/fld/myfile and $HOMEFOLDER/tmp/fld/myfile What ahppened effectively is that command at step 6 changed file in ~/tmp/fld/ direcotry (the moved one), though pwd clamed that were still in ~/fld/ folder. I believe that this is not only annoying, but pottentially dangerous bug.
This is not a bug, but how the filesystem is designed. It has nothing to do with gnome-terminal. Moving the folder on the same filesystem keeps the inode entry for the directory. Eg you're in the listing of that folder.. doesn't matter anymore what the folder is named like/located.