whereis command output for -M and -B options is inversed

Bug #1539858 reported by Jean Vabre
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Ubuntu 14.04

using whereis command I came across the following situation

if I type '-M' option I get binaries result,
if I type '-B' option I get manual results,

command : whereis -M /usr -f apt-get

expected output : /usr/share/man/man8/apt-get.8.gz

real output : /usr/bin/apt-get /usr/bin/X11/apt-get

command : whereis -B /usr -f apt-get

expected output : /usr/bin/apt-get /usr/bin/X11/apt-get

real output : /usr/share/man/man8/apt-get.8.gz

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1539858/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Jean Vabre (jean-6) wrote :

added package

affects: ubuntu → util-linux (Ubuntu)
tags: added: trusty
Revision history for this message
Phillip Susi (psusi) wrote :

Those switches instruct whereis on where it should search for binaries or man pages. You asked it to look only in a directory where the file is NOT and thus it does not report finding the file. Try:

whereis -B /usr/bin -f apt-get

Changed in util-linux (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.