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