From 29d80643d238282f5440122d600614eb7b8fc63d Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Thu, 21 Jan 2016 16:19:46 +0100 Subject: [PATCH] brew.rb: don't re-export for external commands `bin/brew` already sets up a bunch of environment variables. There's no need to re-export them for external commands. (`HOMEBREW_LIBRARY_PATH` and `HOMEBREW_CACHE` continue to be determined later in the Ruby code.) --- Library/brew.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/brew.rb b/Library/brew.rb index a1bbc1fd51..36dd901a57 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -84,7 +84,7 @@ begin if internal_cmd Homebrew.send cmd.to_s.tr("-", "_").downcase elsif which "brew-#{cmd}" - %w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e| + %w[CACHE LIBRARY_PATH].each do |e| ENV["HOMEBREW_#{e}"] = Object.const_get("HOMEBREW_#{e}").to_s end exec "brew-#{cmd}", *ARGV