命令通過與OH-MY-zsh的框架一起使用zsh的一段時間,我注意到,這命令的行爲在不同的zsh比在bash。不同的行爲,其中在的zsh和bash
我的意思:
# on zsh
[email protected] ~ ➜ which ls
ls: aliased to ls --color=auto
[email protected] ~ ➜ which which
which: shell built-in command
[email protected] ~ ➜ bash
[[email protected] ~]$ which ls
/usr/bin/ls
[[email protected] ~]$ which which
/usr/bin/which
[[email protected] ~]$
爲什麼會出現這種情況,我怎麼可以「修復」嗎?
PS。我在Arch Linux上重現了這一點(不確定它是否重要,但我提到它)。
http://stackoverflow.com/questions/7719757/zsh-which-rvm-or-which-gem-returns-the-function-contents-instead-of-the-path – cmh