carlhuda/bundler — pull request #1573 by tenderlove (2011-12-03 03:17:55+00:00)
Title: Search $PATH for a binary rather than shelling out to `which`

I'm trying to speed up startup time for `rake environment` (on rails). Creating subshells came up on my list, so I'm trying to eliminate them.

This patch changes Bundler to search the `PATH` environment variable rather than shelling out to `which`. The function isn't 100% perfect as it doesn't handle "./sudo" the same way the shell does, but our input for this function is known so I don't think it matters.