Bug 3470 - Odd output from "whereis"
Odd output from "whereis"
Product: Red Hat Linux
Classification: Retired
Component: util-linux (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Jay Turner
Depends On:
  Show dependency treegraph
Reported: 1999-06-15 02:09 EDT by Edward Kuns
Modified: 2015-01-07 18:37 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-06-29 15:09:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Edward Kuns 1999-06-15 02:09:23 EDT
I have /opt symlinked to /usr/opt.  Since upgrading to Red
Hat 6.0, the 'whereis' command seemingly looks in
"/opt/../bin" as well as "/usr/bin":

kilroy> whereis whereis
whereis: /usr/bin/whereis /opt/../bin/whereis

If I "PATH=/bin:/usr/bin" I get the same output above, so
this isn't anything in my PATH variable.
Comment 1 Jeff Johnson 1999-06-15 07:44:59 EDT
A "strings /bin/whereis" indicates that whereis looks in /opt/*/bin.
The ".." should be ignored.

Note You need to log in before you can comment on or make changes to this bug.