diff --git a/hosts b/hosts index 40298cb..e6319fb 100755 --- a/hosts +++ b/hosts @@ -311,8 +311,8 @@ _DEFINED_COMMANDS=() # Loads all of the commands sourced in the environment. _load_commands() { - _debug printf "_load_commands(): entering...\n" - _debug printf "_load_commands() declare -F:\n%s\n" "$(declare -F)" + _debug printf "• _load_commands(): entering...\n" + _debug printf "• _load_commands() declare -F:\n%s\n" "$(declare -F)" # declare is a bash built-in shell function that, when called with the '-F' # option, displays all of the functions with the format @@ -327,7 +327,7 @@ _load_commands() { local function_name function_name=$(printf "%s" "${c}" | awk '{ print $3 }') - _debug printf "_load_commands() \${function_name}: %s\n" "${function_name}" + _debug printf "• _load_commands() \${function_name}: %s\n" "${function_name}" # Add the function name to the $_DEFINED_COMMANDS array unless it starts # with an underscore or is one of the desc(), debug(), or die() functions, @@ -360,8 +360,8 @@ _load_commands() { # # NOTE: must be called at end of program after all commands have been defined. _main() { - _debug printf "main(): entering...\n" - _debug printf "main() \${_CMD} (upon entering): %s\n" "${_CMD}" + _debug printf "• main(): entering...\n" + _debug printf "• main() \${_CMD} (upon entering): %s\n" "${_CMD}" # If $_CMD is blank, then set to `$HOSTS_DEFAULT_COMMAND` if [[ -z ${_CMD} ]] @@ -425,10 +425,10 @@ _contains() { local test_list=(${*:2}) for _test_element in "${test_list[@]:-}" do - _debug printf "_contains() \${_test_element}: %s\n" "${_test_element}" + _debug printf "• _contains() \${_test_element}: %s\n" "${_test_element}" if [[ "${_test_element}" == "${1}" ]] then - _debug printf "_contains() match: %s\n" "${1}" + _debug printf "• _contains() match: %s\n" "${1}" return 0 fi done @@ -546,10 +546,10 @@ desc() { read -r -d '' "_desc_${1}" <