Quantcast
Channel: How does bash continue to work correctly when you move its working directory? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

How does bash continue to work correctly when you move its working directory?

$
0
0

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?


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>