From 45368c81194379f1baeee86e82eeeb237610003f Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Thu, 16 Jul 2020 14:30:01 -0400 Subject: [PATCH] Add a default back to INFOPATH It looks like #7738 removed the default unintentionally. This adds it back. For scripts that `set -u`, this will fail if $INFOPATH is not already set (`INFOPATH: unbound variable`). This provides an empty default, but one that will still satisfy the trailing colon requirement. --- Library/Homebrew/cmd/shellenv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/shellenv.sh b/Library/Homebrew/cmd/shellenv.sh index 257fec7e8e..d6b9a86385 100644 --- a/Library/Homebrew/cmd/shellenv.sh +++ b/Library/Homebrew/cmd/shellenv.sh @@ -29,7 +29,7 @@ homebrew-shellenv() { echo "export HOMEBREW_REPOSITORY=\"$HOMEBREW_REPOSITORY\";" echo "export PATH=\"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin\${PATH+:\$PATH}\";" echo "export MANPATH=\"$HOMEBREW_PREFIX/share/man\${MANPATH+:\$MANPATH}:\";" - echo "export INFOPATH=\"$HOMEBREW_PREFIX/share/info:\${INFOPATH}\";" + echo "export INFOPATH=\"$HOMEBREW_PREFIX/share/info:\${INFOPATH:-}\";" ;; esac }