dcarley/rbenv-sudo — pull request #2 by nickstenning (2012-10-22 11:12:57+00:00)
Title: Remove use of /usr/bin/env to set command environment

There's no need to use env to set the environment of the command to run. sudo
supports setting environment variables natively, as explained in sudo(8), and
use of 'env' prevents the passing of arguments directly to sudo, such as '-p'.

Before:

$ rbenv sudo -p "Enter your password:" echo "hello"
env: -p: No such file or directory

After:

$ rbenv sudo -p "Enter your password:" echo "hello"
Enter your password:
hello