Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rehash binaries on switch, forcing it to forget seen executables / lo…

…okup new path
  • Loading branch information...
commit f6473f29458d60201c47cf65ae7dde465ef0adfc 1 parent d28bff5
@Sutto Sutto authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  scripts/selector
View
2  scripts/selector
@@ -338,6 +338,8 @@ __rvm_use() {
fi
fi
+ # Rehash executable locations, e.g. to force the shell to recognize new items in the path.
+ builtin hash -r
rvm_hook="after_use" ; source $rvm_scripts_path/hook
}

3 comments on commit f6473f2

@Sutto

For future reference, this was only part of the problem - and not really that much of a solution.

More relevant for the issue paneq mentions (and discussed in Yehuda's excellent blog post) are
ee8aee6 and 8940cac - although
the latter may be unneeded).

@paneq

It required quite a lot of work to fix it. However its beyond my imagination how to write tests that can check against such cases :-)

Please sign in to comment.
Something went wrong with that request. Please try again.