On Mon, 17 Oct 2011, Daniel Serodio (lists) wrote:
Mikael Magnusson wrote:On 17 October 2011 23:09, Daniel Serodio (lists) wrote:I'm trying to troubleshoot a script that works with bash but fails with zsh,[...][...] if [[ ! "${PATH}" =~ $regex ]] ; then where "regexp" is: regex="^([^:]*:)*${rvm_bin_path}(:[^:]*)*$"
When first trying to set up rvm, it regularly segfaulted on me in zsh-4.3.10. I initially narrowed the problem down to the __rvm_after_cd function, and just gutted it by adding:
[[ -n "$ZSH_VERSION" ]] && return 0 as line 9 of ~/.rvm/scripts/cdThen at least it sometimes worked. But, shortly thereafter, I just updated Zsh to zsh-4.3.12, and haven't had problems since.
-- Best, Ben