After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 300925 - gnome-terminal is tricked to get into a different directory.
gnome-terminal is tricked to get into a different directory.
Status: RESOLVED NOTABUG
Product: gnome-terminal
Classification: Core
Component: general
2.10.x
Other Linux
: Normal major
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-17 09:23 UTC by Sergey Kuleshov
Modified: 2005-05-08 11:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Sergey Kuleshov 2005-04-17 09:23:02 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.
Comment 1 Olav Vitters 2005-05-08 11:05:48 UTC
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.