scripts/cli in rvm-0.0.95 vs scripts/cli in rvm-0.0.96

- old
+ new

@@ -71,15 +71,20 @@ rvm_gemdir_flag=1 if [[ "system" = "$1" ]] ; then export rvm_system_flag=1 ; shift ; fi if [[ "user" = "$1" ]] ; then export rvm_user_flag=1 ; shift ; fi ;; - -S|-e) + -S) rvm_action="ruby" rvm_ruby_args="$rvm_token $@" rvm_parse_break=1 ;; + -e) + rvm_action="ruby" + rvm_ruby_args="$rvm_token \"$@\"" + rvm_parse_break=1 + ;; do|ruby|rake|gem|rubydo|rakedo|gemdo) if [[ "do" = "$rvm_action" ]] ; then rvm_action="ruby" ; fi rvm_action=$(echo $rvm_token | sed 's#do##g') if [[ "rake" = "$rvm_action" ]] || [[ "gem" = "$rvm_action" ]] || [[ "ruby" = "$rvm_action" ]] ; then @@ -258,12 +263,13 @@ --sdk) rvm_sdk="$1" ; shift ;; --archflags) rvm_archflags="$1" ; shift ;; tests|specs) rvm_action="tests" ;; --trace) export rvm_trace_flag=1 ; set -x ;; + --symlink) rvm_symlink_name="$1" ; shift ;; - --self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--all|--dump|--summary|--jit|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose|--load) + --self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--all|--dump|--summary|--jit|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose|--load|--passenger|--editor) export rvm_$(echo $rvm_token | sed 's#-##g')_flag=1 if [[ "--debug" = "$rvm_token" ]] ; then export rvm_debug_flag ; fi ;; reboot|flush|asdf|damnit|wtf|argh|work|workdamnit|BOOM|boom|wth) @@ -335,10 +341,10 @@ if [[ ! -z "$rvm_error_message" ]] ; then __rvm_pushpop ; return 1 ; fi } rvm() { if [[ -z "$ZSH_VERSION" ]] ; then - trap 'rm -rf "/tmp/rvm/$$" >/dev/null 2>&1' 0 1 2 3 15 + trap 'rm -rf "$rvm_path/tmp/$$" >/dev/null 2>&1' 0 1 2 3 15 fi # Check that this is the current version. disk_version=$(cat "${rvm_path:-$HOME/.rvm}/lib/VERSION.yml" | tail -n 3 | sed 's/^.*: //g' | tr "\n" '.' | sed 's/\.$//') if [[ "${rvm_version}" != "${disk_version}" ]] && [[ "reload" != "$1" ]]; then