I've got drush in /usr/local/bin
. Running which drush
returns /usr/local/bin/drush
. However running drush
displays "-bash: /usr/bin/drush: No such file or directory
". Running /usr/local/bin/drush
works correctly.
My $PATH is /usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
[added in an edit] Before I had this issue I removed a copy of the script that was at /usr/bin/drush
. It wasn't built correctly.
What on earth could be causing this problem? I do not want to have to type out /usr/local/bin/drush
every time; that's why /usr/local/bin
is in my $PATH
.