From 7596a2901f789dc327196da24a8170a93045dd1a Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 7 Jun 2020 14:00:28 -0700 Subject: [PATCH] Improve variable names in `_print_entries()`. --- hosts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts b/hosts index 0ea6777..cbefc90 100755 --- a/hosts +++ b/hosts @@ -344,7 +344,7 @@ _print_entries() { fi done <<< "${_input}" - local _max_quotient="$((_max_length / 8))" + local _max_tab_equivalent="$((_max_length / 8))" while IFS=$'\t ' read -r -a _parts do @@ -354,8 +354,8 @@ _print_entries() { printf "disabled:\\n" fi - local _current_quotient=$((${#_parts[0]} / 8)) - local _tab_count=$((_max_quotient - _current_quotient + 1)) + local _current_tab_equivalent=$((${#_parts[0]} / 8)) + local _tab_count=$((_max_tab_equivalent - _current_tab_equivalent + 1)) local _tabs= _tabs="$(printf "%*s" ${_tab_count} | tr " " '\t')"