qrush / sub

a delicious way to organize programs
http://37signals.com/svn/posts/3264-automating-with-convention-introducing-sub
MIT License
1.74k stars 148 forks source link

zsh throws error when sub is symlinked from _SUB_ROOT #23

Closed devn closed 6 years ago

devn commented 11 years ago

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 commented 11 years ago

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?