Skip to content

Commit

Permalink
Merge pull request #13874 from gromgit/shellenv/colon-comment
Browse files Browse the repository at this point in the history
shellenv: add explanatory MANPATH comment
  • Loading branch information
MikeMcQuaid committed Sep 15, 2022
2 parents 67c6cae + 75c5769 commit cd405c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/cmd/shellenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

# HOMEBREW_CELLAR and HOMEBREW_PREFIX are set by extend/ENV/super.rb
# HOMEBREW_REPOSITORY is set by bin/brew
# Trailing colon in MANPATH adds default man dirs to search path in Linux, does no harm in macOS.
# Please do not submit PRs to remove it!
# shellcheck disable=SC2154
homebrew-shellenv() {
if [[ "${HOMEBREW_PATH%%:"${HOMEBREW_PREFIX}"/sbin*}" == "${HOMEBREW_PREFIX}/bin" ]]
Expand Down

0 comments on commit cd405c7

Please sign in to comment.