I found a nice little script which iterates through a couple of manuals for a specific command. As a last resort, it will Google it and open a browser window. Source here: http://www.commandlinefu.com/commands/view/7581/rtfm-function
rtfm() { help $@ || $@ -h || $@ --help || man $@ || xdg-open "http://www.google.com/search?q=$@"; }
The problem is, if I search for a manual which matches a builtin command partly, this will be found and displayed, not the actual command. Example:
rtfm tr
will find and display the help for the trap command which is clearly not what I am looking for.
Thus, how to prevent the help command from finding commands which don't exactly match the command I'm looking for? Is it even possible to do this?