From c41b0ada747c66b996ffb53b43fb5ab2735c2612 Mon Sep 17 00:00:00 2001 From: William Melody Date: Sun, 12 Apr 2020 15:39:18 -0700 Subject: [PATCH] Move documentation comment to more logical position. --- hosts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts b/hosts index 116fb88..bbce3f0 100755 --- a/hosts +++ b/hosts @@ -1033,6 +1033,10 @@ enable() { else _debug printf "enable() \${_search_string}: %s\\n" "${_search_string}" + # Regular Expression Notes + # + # - Note double periods in regular expression in order to emulate /.+/, + # which apparently doesn't work properly with all versions of sed. local _regex_ip _regex_ip="^\\#disabled: \\(${_search_string}[${_TAB_SPACE_}]..*\\)$" @@ -1042,10 +1046,6 @@ enable() { local _regex_hostname _regex_hostname="^\\#disabled: \\(..*[${_TAB_SPACE_}]${_search_string}\\)$" - # Regular Expression Notes - # - # - Note double periods in regular expression in order to emulate /.+/, - # which apparently doesn't work properly with all versions of sed. local _targets _targets=$( sed -n \