From 8907778d4a84033dd276e9cfae0b7d355157574e Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Thu, 21 Jan 2016 16:07:59 +0100 Subject: bin/brew: don't pass command name to bash commands We have asserted before that the 1st argument is the command name. No need to pass it to the bash command, which will make the argument handling for the command itself a bit easier. --- bin/brew | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3