From d775353c9af27b9b809b70a124cc144591c1f403 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 7 Jun 2020 13:35:21 -0700 Subject: [PATCH] Use quotes when assigning function name. --- hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts b/hosts index d36ffef..92298f0 100755 --- a/hosts +++ b/hosts @@ -207,7 +207,7 @@ _load_commands() { # Each element has the format `declare -f function_name`, so set the name # to only the 'function_name' part of the string. local _function_name - _function_name=$(printf "%s" "${__name}" | awk '{ print $3 }') + _function_name="$(printf "%s" "${__name}" | awk '{ print $3 }')" _debug printf \ "_load_commands() \${_function_name}: %s\\n" \