-
Notifications
You must be signed in to change notification settings - Fork 895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix man proxy in FreeBSD #1725
Fix man proxy in FreeBSD #1725
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In FreeBSD,
man
command only searches for man files in MANPATH.Which means that FreeBSD
man
program 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 rustc
Locally tested on:
r? @kinnison
Note: Ping me if someone needs to squash this PR.