Bug 3470 - Odd output from "whereis"
Odd output from "whereis"
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: util-linux (Show other bugs)
6.0
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Jay Turner
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 1999-06-29 15:09:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


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
/usr/man/man1/whereis.1

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.