Merge pull request #19600 from Homebrew/brew_bundle_env_sh_quote

`brew bundle env`: quote values correctly.
This commit is contained in:
Mike McQuaid 2025-03-25 13:40:28 +00:00 committed by GitHub
commit 8cd59b6345
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ module Homebrew
if subcommand == "env"
ENV.each do |key, value|
puts "export #{key}=\"#{value}\""
puts "export #{key}=\"#{Utils::Shell.sh_quote(value)}\""
end
return
end