From da47ca921350b6c21a7a9eede63a6f61ddc8b150 Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Thu, 21 Jan 2016 16:26:38 +0100 Subject: [PATCH] bin/brew: put commands into 'homebrew-' namespace This should help to avoid collisions with external commands and other shell functions in the future and is closer to what we do in Ruby, where commands are namespaced by being methods of the `Homebrew` module. --- Library/Homebrew/cmd/update-bash.sh | 2 +- bin/brew | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/update-bash.sh b/Library/Homebrew/cmd/update-bash.sh index 314ad85949..b9ea060aed 100644 --- a/Library/Homebrew/cmd/update-bash.sh +++ b/Library/Homebrew/cmd/update-bash.sh @@ -220,7 +220,7 @@ pull() { trap - SIGINT } -update-bash() { +homebrew-update-bash() { local option local DIR local UPSTREAM_BRANCH diff --git a/bin/brew b/bin/brew index 3ec7d00eee..75ece8cf4e 100755 --- a/bin/brew +++ b/bin/brew @@ -164,7 +164,7 @@ then # Hide shellcheck complaint: # shellcheck source=/dev/null source "$HOMEBREW_BASH_COMMAND" - { "$HOMEBREW_COMMAND" "$@"; exit $?; } + { "homebrew-$HOMEBREW_COMMAND" "$@"; exit $?; } else exec "$HOMEBREW_RUBY_PATH" -W0 "$HOMEBREW_LIBRARY/brew.rb" "$@" fi