From 68b421f95a26a3df214644e173737cbee138572c Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 7 Jun 2020 12:44:21 -0700 Subject: [PATCH] Combine Environment and Globals. --- hosts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/hosts b/hosts index e38d566..4b7f2fb 100755 --- a/hosts +++ b/hosts @@ -25,7 +25,7 @@ set -o noglob IFS=$'\n\t' ############################################################################### -# Globals +# Environment & Globals ############################################################################### # $_VERSION @@ -34,6 +34,11 @@ IFS=$'\n\t' # semantic versioning specification: http://semver.org _VERSION="3.5.1" +# $_ME +# +# Set to the program's basename. +_ME="$(basename "${0}")" + # $HOSTS_DEFAULT_COMMAND # # The command to be run by default, when no command name is specified. If the @@ -137,17 +142,6 @@ _return_1() { return 1 } -############################################################################### -# Environment -############################################################################### - -# $_ME -# -# Set to the program's basename. -_ME=$(basename "${0}") - -_debug printf "\${_ME}: %s\\n" "${_ME}" - ############################################################################### # Load Commands ###############################################################################