Skip to content

Instantly share code, notes, and snippets.

@foucist
Created September 6, 2012 13:03
Show Gist options
  • Save foucist/3656032 to your computer and use it in GitHub Desktop.
Save foucist/3656032 to your computer and use it in GitHub Desktop.
rvm --trace install 1.8.7
+__rvm_parse_args:778> [[ -n 4.3.11 ]]
+__rvm_parse_args:810> [[ -z '' && -n '' ]]
+__rvm_parse_args:812> [[ 0 -eq 1 || -n '' ]]
+__rvm_parse_args:14> [[ -n install ]]
+__rvm_parse_args:16> rvm_token=install
+__rvm_parse_args:18> (( 1 > 0 ))
+__rvm_parse_args:20> next_token=1.8.7
+__rvm_parse_args:21> shift
+__rvm_parse_args:26> case install ([[:alnum:]]*|@*)
+__rvm_parse_args:30> case install (use)
+__rvm_parse_args:30> case install (install|uninstall|reinstall|try_install)
+__rvm_parse_args:47> export 'install_flag=1'
+__rvm_parse_args:48> rvm_action=install
+__rvm_parse_args:49> _string=''
+__rvm_parse_args:50> [[ "${_string} " -regex-match "-- " ]]
+__rvm_parse_args:810> [[ -z install ]]
+__rvm_parse_args:812> [[ 0 -eq 1 || -n '' ]]
+__rvm_parse_args:14> [[ -n 1.8.7 ]]
+__rvm_parse_args:16> rvm_token=1.8.7
+__rvm_parse_args:18> (( 0 > 0 ))
+__rvm_parse_args:23> next_token=''
+__rvm_parse_args:26> case 1.8.7 ([[:alnum:]]*|@*)
+__rvm_parse_args:30> case 1.8.7 (use)
+__rvm_parse_args:30> case 1.8.7 (install|uninstall|reinstall|try_install)
+__rvm_parse_args:30> case 1.8.7 (gemset)
+__rvm_parse_args:30> case 1.8.7 (gemdir|gempath|gemhome)
+__rvm_parse_args:30> case 1.8.7 (pkg)
+__rvm_parse_args:30> case 1.8.7 (system|default)
+__rvm_parse_args:30> case 1.8.7 (do|exec|gem|rake|ruby)
+__rvm_parse_args:30> case 1.8.7 (fetch|version|srcdir|reset|debug|reload|update|monitor|notes|implode|seppuku|question|answer|env|unexport|requirements|automount)
+__rvm_parse_args:30> case 1.8.7 (mount)
+__rvm_parse_args:30> case 1.8.7 (rm|remove)
+__rvm_parse_args:30> case 1.8.7 (default)
+__rvm_parse_args:30> case 1.8.7 (inspect|ls|list|info|strings|get|current)
+__rvm_parse_args:30> case 1.8.7 (docs|alias|rubygems|cleanup|tools|disk-usage|snapshot|repair|migrate|upgrade|cron)
+__rvm_parse_args:30> case 1.8.7 (user)
+__rvm_parse_args:30> case 1.8.7 (load-rvmrc)
+__rvm_parse_args:30> case 1.8.7 (rvmrc)
+__rvm_parse_args:30> case 1.8.7 (benchmark|bench)
+__rvm_parse_args:30> case 1.8.7 (specs|tests)
+__rvm_parse_args:30> case 1.8.7 (export)
+__rvm_parse_args:30> case 1.8.7 (group)
+__rvm_parse_args:30> case 1.8.7 (alt*)
+__rvm_parse_args:30> case 1.8.7 (help|usage)
+__rvm_parse_args:30> case 1.8.7 (wrapper)
+__rvm_parse_args:30> case 1.8.7 (rtfm|RTFM)
+__rvm_parse_args:30> case 1.8.7 (reboot|damnit|wtf|argh|BOOM|boom|wth)
+__rvm_parse_args:30> case 1.8.7 (*)
+__rvm_parse_args:333> [[ 1.8.7 == in ]]
+__rvm_parse_args:345> [[ -n 1.8.7 ]]
+__rvm_parse_args:349> [[ gemset == install ]]
+__rvm_parse_args:367> case 1.8.7 (*,*)
+__rvm_parse_args:367> case 1.8.7 (@*)
+__rvm_parse_args:367> case 1.8.7 (*@*)
+__rvm_parse_args:367> case 1.8.7 (*+*)
+__rvm_parse_args:367> case 1.8.7 (*-*)
+__rvm_parse_args:367> case 1.8.7 (+([[:digit:]]).+([[:digit:]])*)
+__rvm_parse_args:405> rvm_action=install
+__rvm_parse_args:406> rvm_ruby_string=1.8.7
+__rvm_parse_args:407> rvm_ruby_strings=1.8.7
+__rvm_parse_args:455> [[ error == install ]]
+__rvm_parse_args:810> [[ -z install ]]
+__rvm_parse_args:812> [[ 0 -eq 1 || -n '' ]]
+__rvm_parse_args:14> [[ -n '' ]]
+__rvm_parse_args:816> [[ 0 -gt 0 ]]
+__rvm_parse_args:818> [[ -n '' ]]
++ [[ -z '' ]]
++ export PS4
++ PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
++ /scripts/base : 26 > export __array_start rvm_path
++ /scripts/base : 31 > [[ -n '' ]]
++ /scripts/base : 35 > __array_start=0
++ /scripts/base : 38 > (( 0 == 0 ))
+++ /scripts/base : 40 > umask
++ /scripts/base : 40 > : rvm_stored_umask:0022
++ /scripts/base : 41 > rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc")
++ /scripts/base : 42 > [[ -n /Users/foucist ]]
++ /scripts/base : 42 > [[ /Users/foucist/.rvmrc -ef /Users/foucist/.rvmrc ]]
++ /scripts/base : 43 > rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc")
++ /scripts/base : 46 > for rvmrc in '"${rvm_rvmrc_files[@]}"'
++ /scripts/base : 48 > [[ -f /etc/rvmrc ]]
++ /scripts/base : 46 > for rvmrc in '"${rvm_rvmrc_files[@]}"'
++ /scripts/base : 48 > [[ -f /Users/foucist/.rvmrc ]]
++ /scripts/base : 46 > for rvmrc in '"${rvm_rvmrc_files[@]}"'
++ /scripts/base : 48 > [[ -f /Users/foucist/.rvmrc ]]
++ /scripts/base : 63 > unset rvm_rvmrc_files
++ /scripts/base : 66 > export rvm_path
++ /scripts/base : 67 > [[ -z /Users/foucist/.rvm ]]
++ /scripts/base : 79 > true /Users/foucist/.rvm/scripts
++ /scripts/base : 82 > source /Users/foucist/.rvm/scripts/initialize
+++ /scripts/initialize : 3 > : rvm_trace_flag:1
+++ /scripts/initialize : 4 > (( rvm_trace_flag > 0 ))
+++ /scripts/initialize : 6 > set -o xtrace
+++ /scripts/initialize : 9 > [[ -z '' ]]
+++ /scripts/initialize : 14 > export PS4
+++ /scripts/initialize : 15 > PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+++ /scripts/initialize : 26 > [[ -n 3.2.48(1)-release ]]
+++ /scripts/initialize : 28 > shopt -s extglob
+++ /scripts/initialize : 38 > export __rvm_env_loaded
+++ /scripts/initialize : 40 > : __rvm_env_loaded:1:
+++ /scripts/initialize : 42 > : __rvm_env_loaded:2:
+++ /scripts/initialize : 45 > [[ -z /Users/foucist/.rvm/tmp ]]
+++ /scripts/initialize : 45 > (( __rvm_env_loaded == 1 ))
++ /scripts/base : 86 > case " ${rvm_base_except:-} " in
++ /scripts/base : 88 > true
++ /scripts/base : 96 > typeset -a scripts
++ /scripts/base : 99 > scripts=(logging utility init cleanup env rvmrc install environment gemset db bundler)
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/logging
+++ /scripts/functions/logging : 40 > case "${TERM:-dumb}" in
++++ /scripts/functions/logging : 49 > /Users/foucist/.rvm/scripts/color red
+++ /scripts/functions/logging : 49 > rvm_error_clr=''
++++ /scripts/functions/logging : 50 > /Users/foucist/.rvm/scripts/color yellow
+++ /scripts/functions/logging : 50 > rvm_warn_clr=''
++++ /scripts/functions/logging : 51 > /Users/foucist/.rvm/scripts/color magenta
+++ /scripts/functions/logging : 51 > rvm_debug_clr=''
++++ /scripts/functions/logging : 52 > /Users/foucist/.rvm/scripts/color green
+++ /scripts/functions/logging : 52 > rvm_notify_clr=''
++++ /scripts/functions/logging : 53 > /Users/foucist/.rvm/scripts/color reset
+++ /scripts/functions/logging : 53 > rvm_reset_clr=''
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/utility
+++ /scripts/functions/utility : 3 > [[ -z tar ]]
+++ /scripts/functions/utility : 12 > [[ ! =~ --no-same-owner ]]
+++ /scripts/functions/utility : 13 > tar --help
+++ /scripts/functions/utility : 13 > GREP_OPTIONS=
+++ /scripts/functions/utility : 13 > grep -- --no-same-owner
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/init
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/cleanup
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/env
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/rvmrc
+++ /scripts/functions/rvmrc : 3 > export escape_flag _first _second
+++ /scripts/functions/rvmrc : 4 > escape_flag=1
+++ /scripts/functions/rvmrc : 5 > _first=0
+++ /scripts/functions/rvmrc : 6 > _second=1
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/install
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/environment
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/gemset
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/db
++ /scripts/base : 100 > for entry in '${scripts[@]}'
++ /scripts/base : 101 > source /Users/foucist/.rvm/scripts/functions/bundler
++ /scripts/base : 103 > unset scripts entry rvm_base_except
+ /scripts/list : 334 > args=($*)
+ /scripts/list : 335 > action=strings
+ /scripts/list : 336 > args=
+ /scripts/list : 339 > [[ -z strings ]]
+ /scripts/list : 345 > case "$action" in
+ /scripts/list : 351 > list_strings
+ /scripts/list : list_strings() 175 > builtin cd /Users/foucist/.rvm/rubies
+ /scripts/list : list_strings() 176 > find . -maxdepth 1 -mindepth 1 -type d
+ /scripts/list : list_strings() 176 > sed -e s#./##g
+ /scripts/list : list_strings() 179 > return 0
+ /scripts/list : 357 > exit 0
rvm:262: bad math expression: illegal character: ^[
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment