wayneeseguin/rvm — Issue #595: rvm get head - fails on osx + zsh
Author: mpapis
Created: 2011-11-11 07:02:14+00:00
State: open

trace: https://gist.github.com/1356243, and mailing list thread http://groups.google.com/group/rubyversionmanager/browse_thread/thread/c81a13047ab34e8b/8b9a8a448dfa983e

the problem is that /scripts/rvm gets sourced somewhere (hard to find where) and on the end calls __rvm_teardown

@deryldoucette tested on osx + zsh and could not reproduce, but it already happened to few users.

best solution would be to prepare two functions with counter that would initiate and teardown env only once when needed.