Skip to content

Commit dfb5b2c

Browse files
authored
Merge pull request #12497 from xokdvium/fix/dont-override-default-man-search-paths
Don't override default man search paths
2 parents cca4e8c + 95f16a3 commit dfb5b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nix/man-pages.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ std::filesystem::path getNixManDir()
1313
void showManPage(const std::string & name)
1414
{
1515
restoreProcessContext();
16-
setEnv("MANPATH", getNixManDir().c_str());
16+
setEnv("MANPATH", (getNixManDir().string() + ":").c_str());
1717
execlp("man", "man", name.c_str(), nullptr);
1818
if (errno == ENOENT) {
1919
// Not SysError because we don't want to suffix the errno, aka No such file or directory.

0 commit comments

Comments
 (0)