Permalink
Browse files

fix rvm export

  • Loading branch information...
1 parent 782b93c commit fa81317431825cd0ed9f1ae2478f25443d2323ca @mpapis mpapis committed Nov 16, 2014
Showing with 12 additions and 1 deletion.
  1. +9 −0 rvm-test-rvm1/exports_comment_test.sh
  2. +3 −1 scripts/cli
@@ -0,0 +1,9 @@
+source "$rvm_path/scripts/rvm"
+
+export TEST_VAR=2 # env[TEST_VAR]=/^2$/; env[rvm_old_TEST_VAR]=/^$/
+rvm export TEST_VAR=3 # env[TEST_VAR]=/^3$/; env[rvm_old_TEST_VAR]=/^2$/
+rvm unexport # env[TEST_VAR]=/^2$/; env[rvm_old_TEST_VAR]=/^$/
+
+unset TEST_VAR # env[TEST_VAR]=/^$/
+rvm export TEST_VAR=3 # env[TEST_VAR]=/^3$/
+rvm unexport # env[TEST_VAR]=/^$/
View
@@ -286,7 +286,9 @@ __rvm_parse_args()
if
[[ -n "$next_token" ]]
then
- rvm_export_args="$next_token$@"
+ typeset -a ___args
+ ___args=( "$next_token" "$@" )
+ rvm_export_args="${___args[*]}"
rvm_action="export"
rvm_parse_break=1
else

0 comments on commit fa81317

Please sign in to comment.