Closed danbst closed 4 years ago
hmm yeah that's awkward. Not sure what the problem is...
it looks like Pathname.pwd
and Dir.pwd
resolve the symlinks
ruby calls getcwd()
internally, which returns the resolved current directory. This is so weird, check this out:
setup:
cd /tmp
mkdir foo
ln -s foo bar
cd /tmp/bar
now:
$ pwd
/tmp/bar
$ strace pwd 2>/dev/null
/tmp/foo
I have:
I jump into
~/code/github.com/nixos/nixpkgs/pkgs/top-level
and try to jumpup
:I'm following symlink, which is awkward. I expected to end up in
~/code/github.com/nixos/nixpkgs
.(kinda related, but won't help here - for a long time fish had same problem with
cd
, https://github.com/fish-shell/fish-shell/issues/3350)