Index: drush =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/drush/drush,v retrieving revision 1.9 diff -u -p -r1.9 drush --- drush 13 Oct 2009 04:36:25 -0000 1.9 +++ drush 5 Nov 2009 16:44:51 -0000 @@ -41,9 +41,11 @@ else # We check for a command line (cli) version of php, and if found use that. /usr/bin/env php-cli -v &> /dev/null if [ "$?" = 0 ] ; then - /usr/bin/env php-cli $SCRIPT_PATH "$@" + PHP=`/usr/bin/env which php-cli` else # Alternatively we run with straight php, which works on most other systems. - /usr/bin/env php $SCRIPT_PATH "$@" + PHP=`/usr/bin/env which php` fi + + /usr/bin/env $PHP $SCRIPT_PATH "$@" fi