aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDoug Hazell2017-01-09 12:31:28 +0000
committerDoug Hazell2017-01-16 21:25:25 +0000
commiteca3f117badb9ee91d74d7978aa5f4d49a1e9bfd (patch)
tree0957473e614b4ef93de33203d9c5ab1bfee56589 /Library
parent10b8d27d118c5db7ce4293861cded28e8516e849 (diff)
downloadbrew-eca3f117badb9ee91d74d7978aa5f4d49a1e9bfd.tar.bz2
Update with comments in the code
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/utils/shell_env.sh15
1 files changed, 15 insertions, 0 deletions
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"