From cfc5fed7ceb74e04654e51f229f7973350539941 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 19 Feb 2016 17:02:20 +0800 Subject: [PATCH] update: fix fork bomb caused by `brew update --help` Fixes Homebrew/homebrew#49334. Closes Homebrew/homebrew#49343. Signed-off-by: Xu Cheng --- Library/Homebrew/cmd/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 7124482644..008b1550c8 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -252,7 +252,8 @@ homebrew-update() { for option in "$@" do case "$option" in - --help) brew update --help; exit $? ;; + # TODO: - `brew update --help` should display update subcommand help + --help) brew --help; exit $? ;; --verbose) HOMEBREW_VERBOSE=1 ;; --debug) HOMEBREW_DEBUG=1;; --rebase) HOMEBREW_REBASE=1 ;;