Skip to content

Instantly share code, notes, and snippets.

@JEG2
Created June 4, 2010 19:51
Show Gist options
  • Save JEG2/425866 to your computer and use it in GitHub Desktop.
Save JEG2/425866 to your computer and use it in GitHub Desktop.
--trace --default 1.9.2
rvm 0.1.38 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z ruby-1.9.2-preview3 ]]
+ rvm_action=use
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 2 -gt 0 ]]
+ rvm_token=--default
+ shift
+ case "$rvm_token" in
++ sed s#-##g
++ echo --default
+ export rvm_default_flag=1
+ rvm_default_flag=1
+ [[ --debug = \-\-\d\e\f\a\u\l\t ]]
+ [[ -z use ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 1 -gt 0 ]]
+ rvm_token=1.9.2
+ shift
+ case "$rvm_token" in
+ [[ ! -z 1.9.2 ]]
+ [[ gemset = \u\s\e ]]
++ awk /,/
++ echo 1.9.2
+ [[ ! -z '' ]]
+ /usr/local/rvm/scripts/match 1.9.2 '^.+@.+$'
+ /usr/local/rvm/scripts/match 1.9.2 -
+ /usr/local/rvm/scripts/match 1.9.2 '^[0-9].[0-9]'
+ rvm_ruby_string=1.9.2
+ rvm_ruby_strings=1.9.2
+ rvm_action=use
+ [[ error = \u\s\e ]]
+ [[ -z use ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
+ [[ ! -z '' ]]
+ export BUNDLE_PATH GEM_HOME GEM_PATH rvm_ruby_string rvm_action rvm_bin_flag rvm_debug_flag rvm_delete_flag rvm_docs_type rvm_file_name rvm_gemset_name rvm_head_flag rvm_install_on_use_flag rvm_interactive rvm_llvm_flag rvm_make_flags rvm_proxy rvm_remove_flag rvm_ruby_args rvm_ruby_configure_flags rvm_ruby_file rvm_ruby_gem_home rvm_ruby_interpreter rvm_ruby_name rvm_ruby_patch rvm_ruby_patch_name rvm_ruby_version rvm_system_flag rvm_trace_flag rvm_use_flag rvm_user_flag rvm_verbose_flag
+ export rvm_path rvm_rubies_path rvm_scripts_path rvm_archives_path rvm_src_path rvm_log_path rvm_bin_path rvm_gems_path rvm_config_path rvm_tmp_path rvm_hooks_path rvm_gems_cache_path rvm_gemset_separator
+ result=0
+ case "$rvm_action" in
+ __rvm_use
+ [[ -z '' ]]
+ __rvm_select
+ [[ -z 1.9.2 ]]
+ __rvm_ruby_string
+ [[ -z '' ]]
+ rvm_ruby_string=1.9.2
++ /usr/local/rvm/scripts/alias show 1.9.2
+ expanded_alias_name=
+ [[ -n '' ]]
+ [[ 1.9.2 = default ]]
++ awk -F@ '{print $2}'
++ echo 1.9.2
+ set_name=
+ [[ ! -z '' ]]
++ awk -F@ '{print $1}'
++ echo 1.9.2
+ ruby_string=1.9.2
+ __rvm_unset_ruby_variables
+ unset rvm_ruby_interpreter rvm_ruby_version rvm_url rvm_ruby_repo_url rvm_ruby_package_name rvm_ruby_patch_level rvm_ruby_make rvm_ruby_make_install rvm_ruby_revision rvm_ruby_tag rvm_release_version rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_ruby_binary rvm_ruby_home rvm_ruby_log_path rvm_ruby_src_path rvm_ruby_irbrc rvm_ruby_selected_flag rvm_ruby_src_path rvm_ruby_repo_url rvm_major_version rvm_minor_version rvm_ruby_gem_home rvm_head_flag rvm_ruby_configure rvm_ruby_mode rvm_ruby_package_file rvm_ruby_package_name rvm_ruby_gem_path rvm_ruby_name rvm_ruby_alias rvm_ruby_strings rvm_ruby_repo_path
++ tr - ' '
++ echo 1.9.2
+ for string in '$(echo $ruby_string | tr '\''-'\'' '\'' '\'')'
+ [[ head = \1\.\9\.\2 ]]
+ [[ system = \1\.\9\.\2 ]]
+ [[ nightly = \1\.\9\.\2 ]]
+ /usr/local/rvm/scripts/match 1.9.2 '^preview'
+ /usr/local/rvm/scripts/match 1.9.2 '^rc[0-9]'
+ /usr/local/rvm/scripts/match 1.9.2 '^[0-9]\.[0-9]'
+ rvm_ruby_version=1.9.2
+ unset rvm_ruby_revision rvm_ruby_tag
+ [[ -z '' ]]
+ /usr/local/rvm/scripts/match 1.9.2 '^1\.[8-9]'
+ rvm_ruby_interpreter=ruby
+ [[ -z 1.9.2 ]]
+ [[ -z 1.9.2 ]]
+ rvm_ruby_string=ruby-1.9.2
+ [[ '' -eq 1 ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
++ __rvm_db ruby_1.9.2_patch_level
++ key=ruby_1.9.2_patch_level
++ variable=
++ [[ -f /usr/local/rvm/config/user ]]
+++ /usr/local/rvm/scripts/db /usr/local/rvm/config/user ruby_1.9.2_patch_level
++ value=
++ [[ -z '' ]]
+++ /usr/local/rvm/scripts/db /usr/local/rvm/config/db ruby_1.9.2_patch_level
++ value=preview3
++ [[ ! -z preview3 ]]
++ [[ -z '' ]]
++ echo preview3
++ unset key value variable
+ patch_level=preview3
+ [[ ! -z preview3 ]]
+ [[ ree = \r\u\b\y ]]
+ [[ rbx = \r\u\b\y ]]
+ rvm_ruby_patch_level=ppreview3
+ [[ ! -z ppreview3 ]]
++ sed 's#^pp#p#'
++ echo ppreview3
+ rvm_ruby_patch_level=preview3
+ rvm_ruby_string=ruby-1.9.2-preview3
+ [[ ree = \r\u\b\y ]]
+ [[ rbx = \r\u\b\y ]]
++ sed s#-pp#-p#
++ echo ruby-1.9.2-preview3
+ rvm_ruby_string=ruby-1.9.2-preview3
+ rvm_archive_extension=tar.gz
+ case "$rvm_ruby_interpreter" in
+ [[ -z 1.9.2 ]]
++ __rvm_db ruby_repo_url
++ key=ruby_repo_url
++ variable=
++ [[ -f /usr/local/rvm/config/user ]]
+++ /usr/local/rvm/scripts/db /usr/local/rvm/config/user ruby_repo_url
++ value=
++ [[ -z '' ]]
+++ /usr/local/rvm/scripts/db /usr/local/rvm/config/db ruby_repo_url
++ value=http://svn.ruby-lang.org/repos/ruby
++ [[ ! -z http://svn.ruby-lang.org/repos/ruby ]]
++ [[ -z '' ]]
++ echo http://svn.ruby-lang.org/repos/ruby
++ unset key value variable
+ rvm_ruby_repo_url=http://svn.ruby-lang.org/repos/ruby
+ __rvm_gemset_select
+ command -v gem
+ [[ 0 -gt 0 ]]
+ rvm_ruby_global_gems_path=/usr/local/rvm/gems/ruby-1.9.2-preview3@global
+ [[ -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z ruby-1.9.2-preview3 ]]
+ [[ ruby != \s\y\s\t\e\m ]]
+ rvm_ruby_gem_home=/usr/local/rvm/gems/ruby-1.9.2-preview3
+ [[ -z '' ]]
+ unset rvm_gemset_name
+ [[ ! -z '' ]]
+ [[ '' -eq 1 ]]
+ [[ -z /usr/local/rvm/gems/ruby-1.9.2-preview3 ]]
+ rvm_ruby_gem_path=/usr/local/rvm/gems/ruby-1.9.2-preview3:/usr/local/rvm/gems/ruby-1.9.2-preview3@global
+ mkdir -p /usr/local/rvm/gems/ruby-1.9.2-preview3
+ export rvm_ruby_gem_path rvm_ruby_gem_home
+ [[ ! -z ruby ]]
+ [[ system != \r\u\b\y ]]
+ [[ default != \r\u\b\y ]]
+ [[ ! -z 1.9.2 ]]
++ awk -F. '{ print $1 }'
++ echo 1.9.2
+ rvm_release_version=1
++ awk -F. '{ print $2 }'
++ echo 1.9.2
+ rvm_major_version=9
++ awk -F. '{ print $3 }'
++ echo 1.9.2
+ rvm_minor_version=2
+ rvm_ruby_package_name=ruby-1.9.2-preview3
+ rvm_ruby_home=/usr/local/rvm/rubies/ruby-1.9.2-preview3
+ rvm_ruby_log_path=/usr/local/rvm/log/ruby-1.9.2-preview3
+ rvm_ruby_repo_path=/usr/local/rvm/repos/ruby-1.9.2-preview3
+ rvm_ruby_src_path=/usr/local/rvm/src/ruby-1.9.2-preview3
+ rvm_ruby_binary=/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
+ rvm_ruby_irbrc=/usr/local/rvm/rubies/ruby-1.9.2-preview3/.irbrc
+ rvm_ruby_gem_home=/usr/local/rvm/gems/ruby-1.9.2-preview3
+ rvm_ruby_gem_path=/usr/local/rvm/gems/ruby-1.9.2-preview3:/usr/local/rvm/gems/ruby-1.9.2-preview3@global
+ [[ maglev = \r\u\b\y ]]
+ [[ ! -z '' ]]
+ rvm_ruby_selected_flag=1
+ mkdir -p /usr/local/rvm/log/ruby-1.9.2-preview3
+ 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_release_version rvm_major_version rvm_minor_version rvm_gemset_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
+ [[ -z ruby ]]
+ [[ system = \r\u\b\y ]]
+ GEM_HOME=/usr/local/rvm/gems/ruby-1.9.2-preview3
+ GEM_PATH=/usr/local/rvm/gems/ruby-1.9.2-preview3:/usr/local/rvm/gems/ruby-1.9.2-preview3@global
+ BUNDLE_PATH=/usr/local/rvm/gems/ruby-1.9.2-preview3
+ MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-1.9.2-preview3
+ RUBY_VERSION=ruby-1.9.2-preview3
+ IRBRC=/usr/local/rvm/rubies/ruby-1.9.2-preview3/.irbrc
+ export GEM_HOME GEM_PATH BUNDLE_PATH MY_RUBY_HOME RUBY_VERSION IRBRC
+ [[ -z /usr/local/rvm/rubies/ruby-1.9.2-preview3/.irbrc ]]
+ [[ ! -d /usr/local/rvm/rubies/ruby-1.9.2-preview3 ]]
+ __rvm_ensure_has_enviroment_files
++ __rvm_environment_identifier
+++ command -v ruby
++ ruby_string=/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ '[' -n /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby ']'
++ grep -q -F /usr/local/rvm/rubies
++ echo /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ xargs basename
++ echo /usr/local/rvm/gems/ruby-1.9.2-preview3
++ unset ruby_string
+ local environment_identifier=ruby-1.9.2-preview3
+ file_name=/usr/local/rvm/environments/ruby-1.9.2-preview3
+ [[ ruby-1.9.2-preview3 == \s\y\s\t\e\m ]]
+ [[ ! -s /usr/local/rvm/environments/ruby-1.9.2-preview3 ]]
+ unset file_name
+ [[ -z '' ]]
+ rvm_creating_default_wrappers=1
+ directory_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ [[ ! -L /usr/local/rvm/wrappers/ruby-1.9.2-preview3 ]]
+ [[ ! -d /usr/local/rvm/wrappers/ruby-1.9.2-preview3 ]]
+ unset rvm_creating_default_wrappers directory_name
+ [[ ! -z '' ]]
++ paste -sd : -
++ awk '$0 !~ /rvm/'
++ tr : '\n'
++ echo /usr/local/bin:/usr/local/rvm/gems/ruby-1.9.2-preview3/bin:/usr/local/rvm/gems/ruby-1.9.2-preview3@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
+ new_path=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
+ new_path=/usr/local/rvm/gems/ruby-1.9.2-preview3/bin:/usr/local/rvm/gems/ruby-1.9.2-preview3@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
+ [[ ! -z ruby-1.9.2-preview3 ]]
+ export rvm_ruby_string
+ [[ ! -z '' ]]
+ [[ ! -z /usr/local/rvm/gems/ruby-1.9.2-preview3/bin:/usr/local/rvm/gems/ruby-1.9.2-preview3@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin ]]
+ export PATH=/usr/local/rvm/gems/ruby-1.9.2-preview3/bin:/usr/local/rvm/gems/ruby-1.9.2-preview3@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
+ PATH=/usr/local/rvm/gems/ruby-1.9.2-preview3/bin:/usr/local/rvm/gems/ruby-1.9.2-preview3@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
+ unset new_path
+ [[ ! -z '' ]]
++ __rvm_environment_identifier
+++ command -v ruby
++ ruby_string=/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ '[' -n /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby ']'
++ grep -q -F /usr/local/rvm/rubies
++ echo /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ xargs basename
++ echo /usr/local/rvm/gems/ruby-1.9.2-preview3
++ unset ruby_string
+ environment_id=ruby-1.9.2-preview3
+ [[ ! -z 1 ]]
+ [[ default != \r\u\b\y ]]
++ whoami
+ [[ root = \r\o\o\t ]]
+ /usr/local/rvm/scripts/wrapper ruby-1.9.2-preview3
+ export rvm_trace_flag
+ trap 'if [[ -d /usr/local/rvm/tmp/ ]] && [[ -s /usr/local/rvm/tmp/19878 ]] ; then rm -f /usr/local/rvm/tmp/19878 > /dev/null 2>&1 ; fi ; exit' 0 1 2 3 15
+ [[ -z ruby-1.9.2-preview3 ]]
+ ruby_string=ruby-1.9.2-preview3
+ shift
+ prefix=
+ [[ -n '' ]]
++ sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
++ echo
+ binaries=
+ [[ system == \$\r\u\b\y\_\s\t\r\i\n\g ]]
+ [[ -z '' ]]
+ binaries='ruby gem irb ri rdoc rake erb testrb'
+ __rvm_become ruby-1.9.2-preview3
+ [[ -n ruby-1.9.2-preview3 ]]
+ rvm_ruby_string=ruby-1.9.2-preview3
+ __rvm_ensure_has_enviroment_files
++ __rvm_environment_identifier
+++ command -v ruby
++ ruby_string=/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ '[' -n /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby ']'
++ grep -q -F /usr/local/rvm/rubies
++ echo /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ xargs basename
++ echo /usr/local/rvm/gems/ruby-1.9.2-preview3
++ unset ruby_string
+ local environment_identifier=ruby-1.9.2-preview3
+ file_name=/usr/local/rvm/environments/ruby-1.9.2-preview3
+ [[ ruby-1.9.2-preview3 == \s\y\s\t\e\m ]]
+ [[ ! -s /usr/local/rvm/environments/ruby-1.9.2-preview3 ]]
+ unset file_name
+ [[ -z '' ]]
+ rvm_creating_default_wrappers=1
+ directory_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ [[ ! -L /usr/local/rvm/wrappers/ruby-1.9.2-preview3 ]]
+ [[ ! -d /usr/local/rvm/wrappers/ruby-1.9.2-preview3 ]]
+ unset rvm_creating_default_wrappers directory_name
++ __rvm_environment_identifier
+++ command -v ruby
++ ruby_string=/usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ '[' -n /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby ']'
++ grep -q -F /usr/local/rvm/rubies
++ echo /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby
++ xargs basename
++ echo /usr/local/rvm/gems/ruby-1.9.2-preview3
++ unset ruby_string
+ environment_identifier=ruby-1.9.2-preview3
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/ruby
+ [[ -z '' ]]
+ wrap_binary
+ command -v ruby
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ruby
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ruby
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec ruby "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ruby ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ruby
+ [[ ruby == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ruby /usr/local/bin/ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/gem
+ [[ -z '' ]]
+ wrap_binary
+ command -v gem
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/gem
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/gem
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec gem "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/gem ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/gem
+ [[ gem == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/gem /usr/local/bin/gem-ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/irb
+ [[ -z '' ]]
+ wrap_binary
+ command -v irb
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/irb
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/irb
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec irb "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/irb ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/irb
+ [[ irb == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/irb /usr/local/bin/irb-ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/ri
+ [[ -z '' ]]
+ wrap_binary
+ command -v ri
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ri
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ri
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec ri "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ri ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ri
+ [[ ri == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/ri /usr/local/bin/ri-ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/rdoc
+ [[ -z '' ]]
+ wrap_binary
+ command -v rdoc
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rdoc
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rdoc
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec rdoc "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rdoc ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rdoc
+ [[ rdoc == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rdoc /usr/local/bin/rdoc-ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/rake
+ [[ -z '' ]]
+ wrap_binary
+ command -v rake
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rake
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rake
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec rake "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rake ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rake
+ [[ rake == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/rake /usr/local/bin/rake-ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/erb
+ [[ -z '' ]]
+ wrap_binary
+ command -v erb
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/erb
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/erb
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec erb "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/erb ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/erb
+ [[ erb == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/erb /usr/local/bin/erb-ruby-1.9.2-preview3
+ unset file_name
+ for binary_name in '$binaries'
+ file_name=/usr/local/rvm/wrappers/ruby-1.9.2-preview3/testrb
+ [[ -z '' ]]
+ wrap_binary
+ command -v testrb
+ wrap
++ dirname /usr/local/rvm/wrappers/ruby-1.9.2-preview3/testrb
+ mkdir -p /usr/local/rvm/wrappers/ruby-1.9.2-preview3
+ rm -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/testrb
+ printf '#!/usr/bin/env sh\n'
+ printf 'source "/usr/local/rvm/environments/ruby-1.9.2-preview3"\n'
+ printf 'exec testrb "$@"\n'
+ [[ -f /usr/local/rvm/wrappers/ruby-1.9.2-preview3/testrb ]]
+ chmod +x /usr/local/rvm/wrappers/ruby-1.9.2-preview3/testrb
+ [[ testrb == \r\u\b\y ]]
+ ln -sf /usr/local/rvm/wrappers/ruby-1.9.2-preview3/testrb /usr/local/bin/testrb-ruby-1.9.2-preview3
+ unset file_name
+ exit 0
+ [[ -d /usr/local/rvm/tmp/ ]]
+ [[ -s /usr/local/rvm/tmp/19878 ]]
+ exit
+ [[ system = \r\u\b\y ]]
++ sed 's#^\(.*\) (.*$#\1#'
++ /usr/local/rvm/rubies/ruby-1.9.2-preview3/bin/ruby -v
+ RUBY_VERSION='ruby 1.9.2dev'
+ export GEM_HOME GEM_PATH BUNDLE_PATH MY_RUBY_HOME RUBY_VERSION
+ /usr/local/rvm/scripts/alias delete default
+ /usr/local/rvm/scripts/alias create default ruby-1.9.2-preview3
+ ln -nfs /usr/local/rvm/environments/ruby-1.9.2-preview3 /usr/local/rvm/environments/default
+ ln -nfs /usr/local/rvm/wrappers/ruby-1.9.2-preview3 /usr/local/rvm/wrappers/default
+ unset rvm_default_flag
+ [[ ! -z '' ]]
+ unset environment_id
+ [[ maglev = \r\u\b\y ]]
+ rvm_hook=after_use
+ source /usr/local/rvm/scripts/hook
++ [[ ! -z after_use ]]
++ [[ -s /usr/local/rvm/hooks/after_use ]]
++ unset rvm_hook
+ result=0
+ [[ ! -z '' ]]
+ [[ ! -z 1 ]]
+ set +x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment