mirror of
https://github.com/octoleo/hosts.git
synced 2025-01-06 07:30:42 +00:00
Move documentation comment to more logical position.
This commit is contained in:
parent
b8c4ec06b9
commit
c41b0ada74
8
hosts
8
hosts
@ -1033,6 +1033,10 @@ enable() {
|
|||||||
else
|
else
|
||||||
_debug printf "enable() \${_search_string}: %s\\n" "${_search_string}"
|
_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
|
local _regex_ip
|
||||||
_regex_ip="^\\#disabled: \\(${_search_string}[${_TAB_SPACE_}]..*\\)$"
|
_regex_ip="^\\#disabled: \\(${_search_string}[${_TAB_SPACE_}]..*\\)$"
|
||||||
|
|
||||||
@ -1042,10 +1046,6 @@ enable() {
|
|||||||
local _regex_hostname
|
local _regex_hostname
|
||||||
_regex_hostname="^\\#disabled: \\(..*[${_TAB_SPACE_}]${_search_string}\\)$"
|
_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
|
local _targets
|
||||||
_targets=$(
|
_targets=$(
|
||||||
sed -n \
|
sed -n \
|
||||||
|
Loading…
Reference in New Issue
Block a user