升级到 Ubuntu 12.04 LTS 并安装 mysql server 5.5 后,我不能在 zsh 中使用“which mysql”,但在 bash 中工作!这是我的回声:
ZSH:
$ whereis mysql
mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.g
$ which mysql
mysql: aliased to nocorrect mysql
$ alias
...
...
mysql='nocorrect mysql'
...
...
BASH:
$ whereis mysql
mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.g
$ which mysql
/usr/bin/mysql