On Linux, I moved a directory to another directory using mv
, and in another shell, my working directory happened to be the directory that was moved.
I ran hg pull
in that shell, and to my surprise, it ran correctly in the new working directory - without me having to type cd
.
How did that work?