aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDoug Hazell2017-02-23 15:32:44 +0000
committerDoug Hazell2017-02-23 15:32:44 +0000
commit9395ec4d309c1a06b90168058eacf5b55f026f37 (patch)
treede3292ac207f3cdbefe542d9cd9bd47271ca0d6e /bin
parentac4c9d13240f466915301556fd1aa57e003ee34a (diff)
downloadbrew-9395ec4d309c1a06b90168058eacf5b55f026f37.tar.bz2
Update based on comments (without a mutex...)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew13
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/brew b/bin/brew
index 8d7730d6b..3feb0af20 100755
--- a/bin/brew
+++ b/bin/brew
@@ -48,19 +48,14 @@ if [[ -n "$HOMEBREW_ENV_FILTERING" ]]
then
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
- export HOMEBREW_BREW_FILE
- export HOMEBREW_PREFIX
- export HOMEBREW_REPOSITORY
- export HOMEBREW_LIBRARY
+# export HOMEBREW_BREW_FILE
+# export HOMEBREW_PREFIX
+# export HOMEBREW_REPOSITORY
+# export HOMEBREW_LIBRARY
execution_env=()
for key in HOME SHELL PATH TERM LOGNAME USER "${!HOMEBREW_@}"
do
- # ugly, unfortunate consequence of lack of `export -p NAME` in bash's export
-
- # The following failed to find non exported vars on Bash 3.2.48
- [[ "$(declare -p "$key" 2>/dev/null)" =~ ^declare\ -[^\ ]*x[^\ ]*\ ]] || continue
-
execution_env+=( "${key}=${!key}" )
done