Providing the full path doesn't work but calling just the name of the program does, why?

view story

http://unix.stackexchange.com – 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 chan (HowTos)