mxcl/homebrew — Issue #10037: Specifying the wrong ruby
Author: DanielHeath
Created: 2012-02-08 04:43:28+00:00
State: open

The 'brew' executable specifies the system ruby (#!/usr/bin/ruby), but if you have another ruby higher in the path then it will try to load bits from each (and fail completely).

If "#!/usr/bin/env ruby" were used instead, then whichever ruby is currently in use would be executed.