You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/run/current-system/sw/share/man has higher priority than /etc/profiles/per-user/$USER/share/man because /run/wrappers/bin is earlier in the PATH, and it's set to /run/current-system/sw/share/man in the MANPATH_MAP.
Steps To Reproduce
Steps to reproduce the behavior:
Install packages with conlicting manpages on the system and the user (e.g., moreutils and parallel).
Try to open the manpage as the user (e.g., man parallel).
Manpage for package installed systemwide is opened.
Expected behavior
It should have opened the manpage for the one installed for the user, as that corresponds to the program that would be executed.
Additional context
I think that the easiest solution here is to remove the MANPATH_MAP entry for /run/wrappers/bin, though maybe this should be behind a setting (I could make a PR for this if desired). I think that ideally there would be a separate manpage collection just for wrappers, but I don't think this is feasible.
Describe the bug
/run/current-system/sw/share/man
has higher priority than/etc/profiles/per-user/$USER/share/man
because/run/wrappers/bin
is earlier in the PATH, and it's set to/run/current-system/sw/share/man
in the MANPATH_MAP.Steps To Reproduce
Steps to reproduce the behavior:
man parallel
).Expected behavior
It should have opened the manpage for the one installed for the user, as that corresponds to the program that would be executed.
Additional context
I think that the easiest solution here is to remove the
MANPATH_MAP
entry for/run/wrappers/bin
, though maybe this should be behind a setting (I could make a PR for this if desired). I think that ideally there would be a separate manpage collection just for wrappers, but I don't think this is feasible.Note that this issue started with #65844.
Notify maintainers
@sternenseemann
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: