Conversation
kinnison
left a comment
There was a problem hiding this comment.
I think this looks good, though I'm loathe to approve because -M overrides the MANPATH environment variable which might also be set and relevant. I'd be more comfortable with manipulating that than passing -M
|
@kinnison So you want to manipulate |
|
I figure that if |
|
@kinnison I pushed the change you requested. |
kinnison
left a comment
There was a problem hiding this comment.
This looks reasonable to me. Have you verified it against FreeBSD and at least one Linux?
|
If so, please rebase to clean up the history of the branch before I merge. |
In FreeBSD, `man` command only searches for man files in MANPATH [1]. [1]: https://www.freebsd.org/cgi/man.cgi?query=man&apropos=0&sektion=0&manpath=FreeBSD+12.0-RELEASE+and+Ports&arch=default&format=html
|
@kinnison I tested on Ubuntu. FreeBSD I only test the equivalent shell command. |
In FreeBSD,
mancommand only searches for man files in MANPATH.Which means that FreeBSD
manprogram does not accept interpret local man files.On Bash-compatible shell, one could use this command to open rust specific manpages:
env MANPATH=$HOME/.rustup/toolchains/stable-x86_64-unknown-freebsd/share/man man rustcLocally tested on:
r? @kinnison
Note: Ping me if someone needs to squash this PR.