Skip to content

Instantly share code, notes, and snippets.

@octplane
Created May 25, 2010 14:41
Show Gist options
  • Save octplane/413197 to your computer and use it in GitHub Desktop.
Save octplane/413197 to your computer and use it in GitHub Desktop.
25/05 16:40 ~% export rvm_trace_flag=2
25/05 16:41 ~% /Users/oct/.rvm/scripts/list
+ export rvm_trace_flag
++ echo ''
++ awk '{print $1}'
+ action=
+ [[ known = '' ]]
+ [[ default = '' ]]
+ [[ -z '' ]]
+ __rvm_list_rubies
+ echo
++ command -v ruby
+ ruby=/Users/oct/.rvm/rubies/ruby-1.8.7-p249/bin/ruby
+ current_ruby=
+ [[ ! -z /Users/oct/.rvm/rubies/ruby-1.8.7-p249/bin/ruby ]]
++ echo /Users/oct/.rvm/rubies/ruby-1.8.7-p249/bin/ruby
++ awk /rvm/
+ [[ ! -z /Users/oct/.rvm/rubies/ruby-1.8.7-p249/bin/ruby ]]
++ echo /Users/oct/.rvm/rubies/ruby-1.8.7-p249/bin/ruby
++ xargs dirname
++ xargs dirname
++ xargs basename
+ current_ruby=ruby-1.8.7-p249
+ printf 'rvm rubies\n'
rvm rubies
++ ls /Users/oct/.rvm/rubies/
++ awk '/[a-z]*-.*/ {print $NF}'
+ for version in '$(\ls $rvm_rubies_path/ 2> /dev/null | awk '\''/[a-z]*-.*/ {print $NF}'\'')'
++ echo jruby-1.5.0
++ awk '/^jruby-/'
+ [[ ! -z jruby-1.5.0 ]]
++ /Users/oct/.rvm/rubies/jruby-1.5.0/bin/ruby -v
++ awk '{print $NF}'
+ string='[ [x86_64-java] ]'
+ [[ jruby-1.5.0 = \r\u\b\y\-\1\.\8\.\7\-\p\2\4\9 ]]
+ echo -n ' '
++ tput setaf 2
++ tput sgr0
+ printf '\n jruby-1.5.0 [ [x86_64-java] ]'
jruby-1.5.0 [ [x86_64-java] ]+ for version in '$(\ls $rvm_rubies_path/ 2> /dev/null | awk '\''/[a-z]*-.*/ {print $NF}'\'')'
++ echo ree-1.8.7-2010.01
++ awk '/^jruby-/'
+ [[ ! -z '' ]]
++ echo ree-1.8.7-2010.01
++ awk '/^maglev-|^macruby-/'
+ [[ ! -z '' ]]
++ file /Users/oct/.rvm/rubies/ree-1.8.7-2010.01/bin/ruby
++ awk '/x86.64/ {print "x86_64"} /386/ {print "i386"} /ppc/ {print "ppc"}'
++ tr '\n' ' '
+ string='[ x86_64 ]'
+ [[ ree-1.8.7-2010.01 = \r\u\b\y\-\1\.\8\.\7\-\p\2\4\9 ]]
+ echo -n ' '
++ tput setaf 2
++ tput sgr0
+ printf '\n ree-1.8.7-2010.01 [ x86_64 ]'
ree-1.8.7-2010.01 [ x86_64 ]+ for version in '$(\ls $rvm_rubies_path/ 2> /dev/null | awk '\''/[a-z]*-.*/ {print $NF}'\'')'
++ echo ruby-1.8.7-p249
++ awk '/^jruby-/'
+ [[ ! -z '' ]]
++ echo ruby-1.8.7-p249
++ awk '/^maglev-|^macruby-/'
+ [[ ! -z '' ]]
++ file /Users/oct/.rvm/rubies/ruby-1.8.7-p249/bin/ruby
++ awk '/x86.64/ {print "x86_64"} /386/ {print "i386"} /ppc/ {print "ppc"}'
++ tr '\n' ' '
+ string='[ x86_64 ]'
+ [[ ruby-1.8.7-p249 = \r\u\b\y\-\1\.\8\.\7\-\p\2\4\9 ]]
+ echo -n '=> '
=> ++ tput setaf 2
++ tput sgr0
+ printf '\n ruby-1.8.7-p249 [ x86_64 ]'
ruby-1.8.7-p249 [ x86_64 ]+ unset version
+ [[ -f /Users/oct/.rvm/config/default ]]
+ [[ -s /Users/oct/.rvm/config/default ]]
++ grep MY_RUBY_HOME /Users/oct/.rvm/config/default
++ awk '-F'\''' '{print $2}'
++ xargs basename
basename: extra operand `/Users/oct/.rvm/rubies/ruby-1.8.7-p249'
Try `basename --help' for more information.
+ version=
+ [[ ! -z '' ]]
+ unset version
+ printf '\n'
+ unset current_ruby version selected system_ruby system_version string binary
+ echo
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment