From 149a51662e45db9409caaaf90bec113c6df7e755 Mon Sep 17 00:00:00 2001 From: William Melody Date: Thu, 24 Mar 2016 17:30:30 -0700 Subject: [PATCH] Handle blank arguments string when assigning to `$_RAW_OPTIONS`. When `$*` is specified with quotes and braces as `"${*}"`, a blank argument array results in an error in older versions of bash. Remove the braces to avoid this error. --- hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts b/hosts index b98f89e..7b26367 100755 --- a/hosts +++ b/hosts @@ -128,7 +128,7 @@ die() { ############################################################################### # Get raw options for any commands that expect them. -_RAW_OPTIONS="${*}" +_RAW_OPTIONS="${*:-}" # Steps: #