Skip to content
Snippets Groups Projects
Unverified Commit 99e30875 authored by Maxim Belkin's avatar Maxim Belkin
Browse files

bin/brew: unset functions that override builtins

Also, enable all Bash builtins
parent 5da322d6
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,13 @@ symlink_target_directory() {
quiet_cd "$directory" && quiet_cd "$target_dirname" && pwd -P
}
for cmd in $(compgen -A builtin)
do
unset -f $cmd # Unset functions that override Bash builtins
enable $cmd # Enable all Bash builtins
done
unset cmd
BREW_FILE_DIRECTORY="$(quiet_cd "${0%/*}/" && pwd -P)"
HOMEBREW_BREW_FILE="${BREW_FILE_DIRECTORY%/}/${0##*/}"
HOMEBREW_PREFIX="${HOMEBREW_BREW_FILE%/*/*}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment