aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/brew3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 11397106d..3ec7d00ee 100755
--- a/bin/brew
+++ b/bin/brew
@@ -153,6 +153,9 @@ fi
if [[ -f "$HOMEBREW_BASH_COMMAND" ]]
then
+ # Bash commands don't need the first argument, which is just the command name.
+ shift
+
# source rather than executing directly to ensure the entire file is read into
# memory before it is run. This makes running a Bash script behave more like
# a Ruby script and avoids hard-to-debug issues if the Bash script is updated