Skip to content

Instantly share code, notes, and snippets.

@mpapis
Forked from batter/rvmrc_list_comment_test.sh
Created January 31, 2012 23:05
Show Gist options
  • Save mpapis/1713651 to your computer and use it in GitHub Desktop.
Save mpapis/1713651 to your computer and use it in GitHub Desktop.
RVM's .rvmrc files break `rvm list` output
source "$rvm_path/scripts/rvm"
rvm install 1.8.7
rvm install 1.9.2
rvm use 1.8.7@abc-test --create --default
# status=0
# match=/Using .*ruby-1.8.7.* with gemset abc-test/
rvm current
# match=/ruby-1.8.7.*@abc-test/
rvm use 1.9.3@abc-test --create
# status=0
# match=/Using .*ruby-1.9.3.* with gemset abc-test/
rvm current
# match=/ruby-1.9.3.*@abc-test/
rvm list
# match=/^ \* ruby-1.8.7/
# match=/^=> ruby-1.9.3/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment