From eca3f117badb9ee91d74d7978aa5f4d49a1e9bfd Mon Sep 17 00:00:00 2001 From: Doug Hazell Date: Mon, 9 Jan 2017 12:31:28 +0000 Subject: Update with comments in the code --- Library/Homebrew/utils/shell_env.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 Library/Homebrew/utils/shell_env.sh (limited to 'Library') diff --git a/Library/Homebrew/utils/shell_env.sh b/Library/Homebrew/utils/shell_env.sh new file mode 100755 index 000000000..fc7e1c972 --- /dev/null +++ b/Library/Homebrew/utils/shell_env.sh @@ -0,0 +1,15 @@ +#!/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