-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Symbolic link from man
to gnuman
, etc. does not work
#176037
Comments
cc @moonfruit |
man
to gnuman
, etc. does not work
I'm not sure how #35874 managed to work. Perhaps macOS changed their MANPATH construction logic after that PR was committed, because the current
Since I've confirmed this by reading the To fix, one of the following needs to be done:
|
@Homebrew/maintainers, what was the rationale for using |
It looks like
|
Yeah, that would trigger the current macOS man path logic, so that's a third option, that's probably the least disruptive of all:
Turns out the standard Linux
However, there's another issue: if
Now, Ironically, having Is there a flaw in my logic? |
Yes, this is indeed a viable option. This solution gets around the problem of confusing directory names:
Couldn't agree more. |
Yes, agreed. Could you open a PR @gromgit? No worries if not.
This also seems like a good idea. I'd be in favour of doing both. @homebrew/core any thoughts on the above? |
I'll take care of that in a few hours. |
The current appended colon means system man pages always shadow Homebrew's. There's also no point adding Homebrew's man dir, nor filling out an empty MANPATH, since `man` and friends will add the necessary dirs according to PATH. Closes Homebrew/homebrew-core#176037. Also fixed a syntax error in the `*csh` INFOPATH setting.
The current appended colon means system man pages always shadow Homebrew's. There's also no point adding Homebrew's man dir, nor filling out an empty MANPATH, since `man` and friends will add the necessary dirs according to PATH. Closes Homebrew/homebrew-core#176037. Also fixed a syntax error in the `*csh` INFOPATH setting.
This isn't completely fixed until #176589 is merged, and that seems to be stuck because of CI failures. I don't seem to be able to reopen this issue though. |
It's merged now. CI failures were unrelated. |
The current appended colon means system man pages always shadow Homebrew's. There's also no point adding Homebrew's man dir, nor filling out an empty MANPATH, since `man` and friends will add the necessary dirs according to PATH. Closes Homebrew/homebrew-core#176037. Also fixed a syntax error in the `*csh` INFOPATH setting.
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I want to install
coreutils
, follow the caveats, and:ls
withls
ls
man page withman ls
What happened (include all command output)?
ls
runs GNUls
man -w ls
prints/usr/share/man/man1/ls.1
andman ls
displays the macOSls
man page instead of the GNUls
man pageWhat did you expect to happen?
man ls
should display the GNUls
man page.In #35874, this caveat was removed:
But
man ls
still displays the macOSls
man page, i.e. the changes in #35874 just don't work on my system. I'm not sure how the default manual path is constructed, but macOS man pages are being preferred overcoreutils
man pages, even if I prepend/usr/local/opt/coreutils/libexec/gnubin
toPATH
.I had to prepend
/usr/local/opt/coreutils/libexec/gnuman
toMANPATH
to getman ls
working.coreutils
is just an example here. This also goes for other Homebrew formulae, e.g.findutils
,gnu-sed
,grep
, anduutils-coreutils
.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: