From fcd9b340a8d62f00ab7941f1ae01f49e7fb73cb2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 25 Mar 2025 11:55:14 +0000 Subject: [PATCH] `brew bundle env`: quote values correctly. Otherwise, certain output will break the script when `eval`ed. --- Library/Homebrew/bundle/commands/exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/bundle/commands/exec.rb b/Library/Homebrew/bundle/commands/exec.rb index 8fc9007bd9..b2c39f17d3 100644 --- a/Library/Homebrew/bundle/commands/exec.rb +++ b/Library/Homebrew/bundle/commands/exec.rb @@ -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