From 5e339e208128e17c82dc380c188593bb8c284efb Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 18 Aug 2025 03:24:36 +0100 Subject: [PATCH] bin/brew: expand env file filter to allow manpage-documented envs --- bin/brew | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/brew b/bin/brew index 3ed923d1e4..17764a150a 100755 --- a/bin/brew +++ b/bin/brew @@ -125,8 +125,8 @@ export_homebrew_env_file() { [[ -r "${env_file}" ]] || return 0 while read -r line do - # only load HOMEBREW_* lines - [[ "${line}" = "HOMEBREW_"* ]] || continue + # only load variables defined in env_config.rb + [[ "${line}" =~ ^(HOMEBREW_|SUDO_ASKPASS=|(all|no|ftp|https?)_proxy=) ]] || continue # forbid overriding variables that are set in this file local invalid_variable