diff options
| author | Doug Hazell | 2017-02-23 15:32:44 +0000 |
|---|---|---|
| committer | Doug Hazell | 2017-02-23 15:32:44 +0000 |
| commit | 9395ec4d309c1a06b90168058eacf5b55f026f37 (patch) | |
| tree | de3292ac207f3cdbefe542d9cd9bd47271ca0d6e /bin | |
| parent | ac4c9d13240f466915301556fd1aa57e003ee34a (diff) | |
| download | brew-9395ec4d309c1a06b90168058eacf5b55f026f37.tar.bz2 | |
Update based on comments (without a mutex...)
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -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 |
