Question

My Leopard has no manuals for Wget and compinit, for example. It lacks in many other areas such as in examples and documentation about options too.

Ubuntu has often better manuals than Mac: for instance, it has manuals for the two commands.

A solution to the problem may be to make a port to MacPorts which installs Ubuntu's manuals to Mac. However, I am not sure whether it is the best solution or not.

Perhaps, a PATH which man uses could be simply changed, such that you keep a local copy of Ubuntu's manuals in Mac. However, I am not sure how you can do that.

How can you expand Mac's manuals to have at least Ubuntu's manuals, such that I can use the following commnands

man wget
man compinit
Was it helpful?

Solution

Original Post: You might want to start by installing said programs on your Mac. The installation will probably include the man pages.

Update to reflect discussion: MacPorts stores its man pages in /opt/local/share/man and adds these to the $MANPATH, apparently only for bash. Make sure it is also on your man path for zsh or whatever other shell you use.

compinit seems to be documented in zshcompsys(1).

OTHER TIPS

As the other answers imply, you really should understand how PATH and MANPATH work.

OS X's manual pages are often lacking, but only for Mac-specific commands. For the standard *nix commands, OS X carries the proper manual pages. It would be a mistake, for instance, to use Ubuntu's manual page for chmod as a guide to OS X's /bin/chmod, because then you would miss the discussion on setting ACLs via chmod in OS X.

As others have mentioned, Macports stores its man pages in /opt/local/share/man. The MANPATH environment variable should contain this value, but it should either prepend or append the existing MANPATH, depending on whether the Macports executable directories (/opt/local/bin:/opt/local/sbin) have been prepended or appended to the PATH.

Solution to get Wget's manual working. Thanks to blb at MacPorts IRC!

Run the following

unset MANPATH

Do NOT export your old MANPATH after the command.

This made me Wget's manual work.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top