From 0bb0228962cebcce05ab966618945621ba144fcb Mon Sep 17 00:00:00 2001 From: Doug Hazell Date: Sun, 12 Feb 2017 14:31:37 +0000 Subject: Presumably the "env -I" was a typo for "env -i" Just sourcing brew.sh causes the "Example usage" msg due to lacking command args but changing the last line of your suggestion to: /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@" worked. If all of the 'HOMEBREW.*' vars, that other parts of the system require, are only added in brew.sh then your suggestion is cleaner. --- Library/Homebrew/utils/shell_env.sh | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 Library/Homebrew/utils/shell_env.sh (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/utils/shell_env.sh b/Library/Homebrew/utils/shell_env.sh deleted file mode 100755 index fc7e1c972..000000000 --- a/Library/Homebrew/utils/shell_env.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set +o posix - -IFS="=" - -while read -r key value -do - export "$key=$value" -done < /tmp/homebrew-env - -# Need to reset IFS to default value for later shell functions like 'printf -v HOMEBREW_MACOS_VERSION_NUMERIC ...' to work -unset IFS - -# HOMEBREW_LIBRARY will have been readded above having been added originally in 'bin/brew' -source "$HOMEBREW_LIBRARY/Homebrew/brew.sh" -- cgit v1.2.3