I notice that for certain commands the 'Documentation for word / Selection (man)' is unable to find the man page for some commands while typing 'man foo' seems to work.
For example 'asr' returns the man page formatted quite nicely in the html window.
However on my system (MacBook Pro, running 10.4.6 w/dev tools, and cutting edge TextMate) the documentation for hdiutil and rsync couldn't be found.
Do I need to modify my shell configuration? or the command in someway? My apologies if this has been discussed before, briefly searching the list didn't seem to turn anything up.
Thanks
Peter
Hi,
those programs you refer to are found in section 1 (admin?) of the man pages. This section is not searched by the command as the line
export MANSECT=${MANSECT:-2:3:4:5:6:7:8:9} # exclude shell commands
indicates. You can change that line to include section 1 or simply delete it (I think).
Soryu
I figured it would be something simple like that. I've wondered what those numbers meant.
Thanks
Peter
On 6/2/06, Soryu Soryu@serenity.de wrote:
Hi,
those programs you refer to are found in section 1 (admin?) of the man pages. This section is not searched by the command as the line
export MANSECT=${MANSECT:-2:3:4:5:6:7:8:9} # exclude shell commands
indicates. You can change that line to include section 1 or simply delete it (I think).
Soryu
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 2/6/2006, at 23:41, Peter Cowan wrote:
I figured it would be something simple like that. I've wondered what those numbers meant.
For the records, the best approach is to set MANSECT yourself, e.g. in Preferences -> Advanced -> Shell Variables.
If you set it to 1:2:3:4:5:6:7:8:9 it will search all sections.
I do plan to change it so that it fallbacks on section 1, if it doesn’t find a match in section 2-9.
The reason I exclude section 1 is that many system functions exist also as a shell command, and I use the man lookup mainly for the former.