I am using rvm installed on Ubuntu 10.04 as recommended in the rvm
docs (including changes to .bashrc) and all is working well with
several versions of Rails, and Ruby 1.8.7 and 1.9.2.
If I run
rvm use 1.9.2
it says
Using /home/colinl/.rvm/gems/ruby-1.9.2-p0
and if I run
rvm info
It shows exactly what I would expect for 1.9.2 and I can start the
rails server and all is well.
The problem arises if I put the above commands in a bash script:
#!/usr/bin/env bash
rvm use 1.9.2
rvm info
When I run this it shows
Using /home/colinl/.rvm/gems/ruby-1.9.2-p0
from the rvm use command, which suggests that it if finding rvm ok,
but the output from rvm info is:
system:
system:
uname: "Linux piglet 2.6.32-26-generic #48-Ubuntu SMP Wed
Nov 24 09:00:03 UTC 2010 i686 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release
(i486-pc-linux-gnu)"
zsh: " => not installed"
I am using rvm installed on Ubuntu 10.04 as recommended in the rvm
docs (including changes to .bashrc) and all is working well with
several versions of Rails, and Ruby 1.8.7 and 1.9.2.
If I run
rvm use 1.9.2
it says
Using /home/colinl/.rvm/gems/ruby-1.9.2-p0
and if I run
rvm info
It shows exactly what I would expect for 1.9.2 and I can start the
rails server and all is well.
The problem arises if I put the above commands in a bash script:
#!/usr/bin/env bash
rvm use 1.9.2
rvm info
When I run this it shows
Using /home/colinl/.rvm/gems/ruby-1.9.2-p0
from the rvm use command, which suggests that it if finding rvm ok,
but the output from rvm info is:
Why is it that one so often finds the solution within two minutes of
posting a question over which one has been struggling for hours?