From: botp Date: 2010-11-11T14:58:42+09:00 Subject: Re: [quite ot] scripting an rvm command ok, ignore. sorry for the noise. found out that i have to source "$HOME/.rvm/scripts/rvm" should have read seguin's page in advance. kind regards -botp On Thu, Nov 11, 2010 at 1:47 PM, botp wrote: > Hi All, > > sorry for this dumb question, but i'm getting zero iq as of this moment :) > > i cannot seem to run properly an rvm command inside a script file. my > objective is to run a ruby script on all rvm versions installed. > > eg, the ff runs fine when run thru the cli, > >   for i in `rvm list strings`; do rvm use "$i"; ruby -v;  done > > but when the above code is placed inside a script file, and then the > script is run,  you wont get the expected output. You just the same > ruby -v result on all rvm ruby versions, as if rvm use command was > ignored.. > > hope i was clear enough. > > thank you and kind regards > -botp >