What am I missing? I can call "rvm" from the command line but not reference the entire path that which rvm says I'm using.
Not that it's important, but I stay logged in as "jenkins" the entire time and these commands are executed in succession.
$ whoami
jenkins
RVM is located here
$ which rvm
/home/jenkins/.rvm/bin/rvm
This works
$ rvm use 1.8.7
Using /home/jenkins/.rvm/gems/ruby-1.8.7-p370
Running /home/jenkins/.rvm/hooks/after_use
But this doesn't work
$ /home/jenkins/.rvm/bin/rvm use 1.8.7
RVM is not a function, selecting rubies with 'rvm use ...' will not work.
You need to change your terminal settings to allow shell login.
Please visit https://rvm.io/workflow/screen/ for example.
Yes, I have visited the link that is referenced but I don't see how it applies to me.
type rvmand see what it tells you. It's likely that you aren't supposed to invoke~/.rvm/bin/rvmdirectly, and thatrvmis actually something else. – jw013 Nov 07 '12 at 15:43rvm is a functionis telling me that when I callrvm, it's calling the function, passing arguments if applicable, etc., but I can't "execute" the file because it's not a program, it's just the function rvm and that function is pulled into my interactive session because of the following lines in my ~/.bash_profile:[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function source ~/.rvm/scripts/rvmMakes sense now! Thanks! – harperville Nov 07 '12 at 15:56type rvmandls -l $(which rvm)please? – rahmu Nov 07 '12 at 16:39rvmis a shell function defined in~/.rvm/scripts/rvm. See comment above by OP. – jw013 Nov 07 '12 at 16:47rvm is a functionThen, <...>(displays content of ~/.rvm/scripts/rvm<...>-rwxrwxr-x 1 jenkins jenkins 1274 2012-09-14 16:28 /home/jenkins/.rvm/bin/rvm– harperville Nov 07 '12 at 16:59