5

xterm doesn't switch directory when it is moved

view full story
linux-howto

http://unix.stackexchange.com – Recently I was very frustrated with xterm not behaving as expected. This is what I was doing: open xterm run the following commands: $ mkdir test_01 $ cd test_01/ $ echo 'a' > a $ cat a The output will be: a open another xterm (don't close the first one) run the following commands: $ mv test_01/ test_01_old $ mkdir test_01 $ cd test_01 $ echo 'b' > a $ cat a The output will be: b now in the original xterm run the command: $ cat a The output will be: a Why does this happen? At this stage, both xterms report the same directory with the pwd command (which is /home/user_1/ (HowTos)