aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMartin Afanasjew2016-01-21 16:26:38 +0100
committerMartin Afanasjew2016-01-26 16:26:08 +0100
commitda47ca921350b6c21a7a9eede63a6f61ddc8b150 (patch)
tree88cf60e6700c5ecfc7613f13e03ba8d205019755 /bin
parent29d80643d238282f5440122d600614eb7b8fc63d (diff)
downloadbrew-da47ca921350b6c21a7a9eede63a6f61ddc8b150.tar.bz2
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 3ec7d00ee..75ece8cf4 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