How do RVM and rbenv actually work?
问题 I am interested in how RVM and rbenv actually work. Obviously they swap between different versions of Ruby and gemsets, but how is this achieved? I had assumed they were simply updating symlinks, but having delved into the code (and I must admit my knowledge of Bash is superficial) they appear to be doing more than this. 回答1: Short explanation: rbenv works by hooking into your environment's PATH . The concept is simple, but the devil is in the details; full scoop below. First, rbenv creates