In my home directory, I have a folder named symlinks in which all my symlinks live. I've added this folder to my CDPATH, so that I can do:
~$ cd FarAwayDirectory
~/symlinks/FarAwayDirectory$
I’ve noticed that if I pwd, I get:
~/symlinks/FarAwayDirectory -> A
rather than:
.../.../.../FarAwayDirectory -> B
which is what I would've gotten through consecutive cd’s.
So my question is: Is working in directory A identical to working in directory B?