Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-23-2010, 09:39 PM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,604

Rep: Reputation: 51
man and man option -M.

Linux kernel = 2.6
Rest of the system = GNU
Commands issued within a text console (virtual console).
Shell = GNU bash 3.1.17
man = 1.6c
Distribution = Slackware 12.0

Hi: How is this possible?:
I issue 'man /usr/local/share/man/man1/mplayer.1' and I get instant access to the man page. This is in accordance to man's man page. That is, the argument is here a file specification. Now, watch this:

$ ls /usr/local/share/man/man1/mplayer.1
$ /usr/local/share/man/man1/mplayer.1
$ man -M /usr/local/share/man/man1 mplayer
$ No manual entry for mplayer

I consider this a clear contradiction with man's man page, regardless of the linux system and of the settings the user could have done to the system. But, needless to say, I may be wrong. Am I? Thanks for reading and regards.

P.S.: it would be the strangest thing in the world that the manual for such a program as man is wrong. I see it. Unfortunately, man pages only state a date (and sometimes not even this). While from linux programs, --version gives a number and only sometimes a date. For example, it could be that the man page version in my system is written for a version of man which is older than the one in my system. Or newer. The fault, in this case, would be in the package builder. But there should be in linux a way of knowing for certain that a manual corresponds with the program.
Old 03-23-2010, 10:44 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,826

Rep: Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973Reputation: 1973
According to my "man man", the -M option says this.

Specify an alternate manpath to use. By default, man uses manpath derived code to determine the path to search. This option overrides the $MANPATH environment variable and causes option -m to be ignored.

A path specified as a manpath must be the root of a manual page hierarchy structured into sections as described in the man-db manual (under "The manual page system"). To view manual pages outside such hierarchies, see the -l option.
(Emphasis mine.)

If I run "man -M /usr/local/share/man/ program" (removing the "man1") it works as expected, probably because it then has a proper hierarchy to search.


man, option

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to man std, man iostream? ty263 Linux - Software 1 04-02-2007 12:35 PM
waht file have paths for man? man.conf? where? xcore_on Linux - Newbie 4 05-23-2006 09:38 AM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM
How to quit man (less) and keep man info on screen? peb Linux - Newbie 7 03-25-2004 10:02 PM
Compiling packages on RH 7.1 causes man files to be named man.gz mmboam Linux - General 0 05-09-2001 06:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration