Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 48 lines (39 sloc) 1.187 kB
source "$rvm_path/scripts/rvm"
: settings
true TMPDIR:${TMPDIR:=/tmp}:
d=$TMPDIR/test-rvmrc
f_rvmrc=$d/.rvmrc
f_gemfile=$d/sub/Gemfile
: prepare1
rvm use 2.1.0 --install
rvm gemset create gemfile
rvm gemset create rvmrc
mkdir -p $d/sub
printf "rvm use 2.1.0@rvmrc\n" > $f_rvmrc
: test1
rvm current # match=/^ruby-2.1.0$/
rvm_current_rvmrc=""
rvm rvmrc load $d/sub # status=0; match=/Using .*ruby-2.1.0.*rvmrc/
rvm current # match=/^ruby-2.1.0@rvmrc$/
: prepare2
rvm use 2.1.0
printf "source :rubygems\n\ngem 'haml'\n" > $f_gemfile
: test2
rvm current # match=/^ruby-2.1.0$/
rvm_current_rvmrc=""
rvm rvmrc load $d/sub # status=0; match=/Using .*ruby-2.1.0.*rvmrc/
rvm current # match=/^ruby-2.1.0@rvmrc$/
: prepare3
rvm use 2.1.0
## escape # -> \x23
printf "source :rubygems\n\x23ruby=2.1.0\n\x23ruby-gemset=gemfile\ngem 'haml'\n" > $f_gemfile
: test3
rvm current # match=/^ruby-2.1.0$/
rvm_current_rvmrc=""
rvm rvmrc load $d/sub # status=0; match!=/Using .*ruby-2.1.0.*rvmrc/
rvm current # match=/^ruby-2.1.0@gemfile$/
: clean
rvm use 2.1.0
rvm --force gemset delete gemfile
rvm --force gemset delete rvmrc
rm -rf $d
Jump to Line
Something went wrong with that request. Please try again.