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

Fix ZSH error when using symlink from _SUB_ROOT/sub instead of bin/sub #24

Closed devn closed 7 years ago

devn commented 11 years ago

I confirmed that this works with both bash and zsh.

[refs #23]

qrush commented 11 years ago

This doesn't work for me when I'm trying it in our 37 sub, which I have in ~/.37.

I'm getting:

/Users/qrush/.37/bin/37: line 13: cd: .//Users/qrush/.37/bin: No such file or directory
37: no such command `init'

Re this comment on #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?"

I'm not too sure. Maybe @sstephenson knows?