scripts/set in rvm-0.1.46 vs scripts/set in rvm-0.1.47
- old
+ new
@@ -5,13 +5,10 @@
if [[ -z "$1" ]] ; then
$rvm_scripts_path/log "error" "Action must be specified."
exit 1
fi
-action="$1" ; shift
-args="$*"
-
__rvm_attempt_single_exec() {
# Return if we have multiple rubies. or we're not running exec.
local ruby_string_lines="$(printf "$rvm_ruby_strings" | wc -l | __rvm_strip)"
if [[ "$action" = "exec" && -n "$rvm_ruby_strings" && "$ruby_string_lines" = "0" ]]; then
__rvm_become "$rvm_ruby_strings"
@@ -157,9 +154,19 @@
# Loop over a set or all rvm installed rubies to perform some action.
# Record the results and report based on CLI selections.
rubies=() ; successes=() ; errors=() ; statuses=()
+
+
+action="$1";
+[[ "$#" -gt 0 ]] && shift
+args="$*"
+
+if [[ "$action" == "ruby" ]] && echo "$args" | grep -q "^'--[^[:space:]]*'$" ; then
+ $rvm_scripts_path/log "warn" "You called rvm ruby with the arguments $args which look like use options."
+ $rvm_scripts_path/log "warn" "Please note that 'rvm ruby' invokes set operations instead."
+fi
rvm_ruby_strings="$(__rvm_expand_ruby_string "$rvm_ruby_strings")"
# Check for a single ruby && exec if present.
__rvm_attempt_single_exec