scripts/selector in rvm-0.1.16 vs scripts/selector in rvm-0.1.18

- old
+ new

@@ -179,10 +179,11 @@ rvm_ruby_string=$(basename $MY_RUBY_HOME) __rvm_select else if [[ -z "$rvm_ruby_string" ]] ; then $rvm_scripts_path/log "fail" "Ruby implementation '$rvm_ruby_interpreter' is not known." + return 1 fi fi esac __rvm_gems_select @@ -216,10 +217,11 @@ export rvm_ruby_interpreter rvm_ruby_version rvm_ruby_repo_url rvm_ruby_package_name rvm_url rvm_ruby_patch_level rvm_ruby_configure rvm_ruby_configure_flags rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_major_version rvm_minor_version rvm_gem_set_name rvm_gems_path rvm_ruby_gem_home rvm_path rvm_src_path rvm_bin_path rvm_ruby_binary rvm_ruby_home rvm_log_path rvm_ruby_log_path rvm_src_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_string else rvm_ruby_interpreter="${rvm_ruby_interpreter:-system}" fi + } __rvm_use() { if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi if [[ -z "$rvm_ruby_interpreter" ]] ; then rvm_ruby_interpreter="default" ; fi @@ -422,10 +424,11 @@ elif $rvm_scripts_path/match "$string" "^u[a-z0-9]" ; then unset rvm_ruby_patch_level rvm_ruby_revision rvm_ruby_tag rvm_ruby_patch rvm_ruby_user_tag="$string" elif $rvm_scripts_path/match "$string" "^b[0-9][0-9]" ; then rvm_ruby_bits="$string" - elif $rvm_scripts_path/match "ruby rbx jruby macruby ree rubinius maglev mput shyouhei ironruby" "$string" ; then + elif $rvm_scripts_path/match "ruby rbx jruby macruby ree rubinius maglev mput shyouhei ironruby " "$string " ; then + # NOTE: The space at the end of each of the above strings is *very* important. rvm_ruby_interpreter="$string" else $rvm_scripts_path/log "error" "Unknown ruby string component: '$string'" return 1 fi