Instead of using the symlink from bin/sub to ../libexec/sub I wanted to make the symlink from _SUB_ROOT/sub to libexec/sub.
The following error in ZSH was produced as a result:
sub: line 13: cd: sub: Not a directory
In Bash this same command is cd ., which produces no error.
Fix error in zsh when symlinking to sub from _SUB_ROOT
Nevermind. My pull request breaks sub-init. Could you please explain why abs_dirname() is the way that it is? Is there a reason some combination of dirname and basename is insufficient?