zsh throws error when sub is symlinked from _SUB_ROOT #23

devn opened this Issue Nov 6, 2012 · 1 comment


None yet

1 participant


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.

@devn devn added a commit to devn/sub that referenced this issue Nov 6, 2012
@devn devn Fix error in zsh when symlinking to sub from _SUB_ROOT
[refs #23]

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment