-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shellenv: prepend colon to MANPATH if set
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.
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When MANPATH is not set, this breaks with
set -eu
:bash -eu -c 'unset MANPATH; eval "$(/opt/homebrew/bin/brew shellenv)"' bash: line 5: MANPATH: unbound variable
Could use e.g.