-
Notifications
You must be signed in to change notification settings - Fork 365
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
opam config env appears to blow away MANPATH #3319
Comments
Which version of opam, please? Is this is a duplicate of #2870? |
I'm running on MacOS 10.13.4, if that's of use. |
Looks indeed like #2870 ;
precisely, on some (most?) systems, it should. On Debian systems,
But indeed, the same page on OSX reads:
which seems consistent with the results we are seeing. In the latter case, however, the Unfortunately, we don't have an operator "prepend/append only if variable is already set", and that would be a bit tedious to add right now (needs extending the parser, etc.), so the simpler solution seems to be not to set |
Ah, I now understand the purpose of the |
Is this being closed because it duplicates #2870? |
No - it's been fixed! Follow the link from the commit |
Ah, excellent! |
Hrm. Has it really been fixed? Yes, it will work for me on MacOS now, but on Linux what will it do? #2870 still seems to be a variation on the issue. |
opam config env
appears to completely replace the contents of the existingMANPATH
variable instead of prepending the appropriate.opam/something/man
directory. If the variable is already set, it should only prepend rather than throwing away the existing contents. Also, if the variable is empty, it should not place a:
into theMANPATH
.The text was updated successfully, but these errors were encountered: