Description of problem: [notting@nostromo: ~]$ whereis bash bash: /bin/bash /usr/bin/bash /usr/share/man/man1/bash.1.gz [notting@nostromo: ~]$ /usr/bin/which bash /usr/bin/bash Ideally, they'd follow the same logic for finding the binary. Version-Release number of selected component (if applicable): util-linux-2.21.2-2.fc17.x86_64 which-2.20-3.fc17.x86_64 How reproducible: 100%
I think given the disclaimer in whereis manpage this is NOTABUG. whereis has a hard-coded path, so may not always find what you're looking for.
(In reply to comment #1) > whereis has a hard-coded path, so may not always find what you're looking > for. The note in the man page is obsolete (I'll fix it), the latest version also follows $PATH. Anyway, I think that whereis(1) should be smart enough to work with symlinks.
We're working upstream to improve the whereis(1) command.
Note that the problem is already fixed in upstream tree and the change will be available for F19/RHEL7.