When cd'ing into a directory symlink, the path is replaced the absolute path to the symlinked directory
Created by: forbjok
I don't know whether this is intentional or an unwanted side-effect of the way paths are handled, but when changing into a directory symlink, the original symlinked path is lost and replaced with the absolute path to the symlinked directory.
The symlinked path being preserved, so that doing
cd .. in the symlinked directory via the symlink will put you back in the directory containing the symlink.
This is what happens in every other shell I've used. (sh, bash, zsh)
cd into the symlink and then
cd .., you end up in the parent directory of the symlinked directory instead of back in the directory containing the symlink.
$ rustc -V rustc 1.25.0-nightly (bacb5c58d 2018-01-26) $ uname -a Linux ariana 4.14.15-1-ARCH #1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018 x86_64 GNU/Linux $ ion --version ion 1.0.0-alpha (x86_64-unknown-linux-gnu) rev 08cf7ed14096459d6ed2efb962e0435159d5928c