Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix: 'rvm package ....' under zsh.

  • Loading branch information...
commit 062db3d3cbf3c25a2ad64121ccf66a7a4ddf9db2 1 parent f1ef072
@wayneeseguin wayneeseguin authored
Showing with 6 additions and 4 deletions.
  1. +3 −3 scripts/cli
  2. +3 −1 scripts/package
View
6 scripts/cli
@@ -14,7 +14,7 @@ __rvm_parse_args() {
package)
rvm_action="$rvm_token"
- export rvm_ruby_args="$@"
+ rvm_ruby_args="$@"
rvm_parse_break=1
;;
@@ -26,7 +26,7 @@ __rvm_parse_args() {
inspect)
rvm_action=$rvm_token
- export rvm_ruby_args=$*
+ rvm_ruby_args="$@"
rvm_parse_break=1
;;
@@ -60,7 +60,7 @@ __rvm_parse_args() {
rvm_parse_break=1
elif [[ "delete" = "$1" ]] || [[ "use" = "$1" ]] ; then
export rvm_${1}_flag=1
- export rvm_ruby_args="$*" ; shift
+ export rvm_ruby_args="$@" ; shift
rvm_gemset_name="$1"; shift
export rvm_ruby_string=$(echo $rvm_gemset_name | sed 's/\(.*\)%.*/\1/')
export rvm_gemset_name=$(echo $rvm_gemset_name | sed 's/.*%\(.*\)/\1/')
View
4 scripts/package
@@ -10,7 +10,9 @@ source $rvm_scripts_path/utility
trap "rm -f $rvm_tmp_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi
-action="$1" ; shift ; library="$1" ; shift ; args="$*"
+action="$(echo $* | awk '{print $1}')"
+library="$(echo $* | awk '{print $2}')"
+args=$(echo "$*" | awk '{$1="" ; $2="" ; print}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
install_package() {
Please sign in to comment.
Something went wrong with that request. Please try again.