mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-25 22:27:42 +00:00
Export space and tab regular expression variables.
These variables are used within regular expressions, but as the program evolves they are not always in constant use. Exporting these variables silences ShellCheck warnings and makes them available to subshells.
This commit is contained in:
parent
a33b38b204
commit
84d77b8aec
8
hosts
8
hosts
@ -55,10 +55,10 @@ HOSTS_PATH="${HOSTS_PATH:-/etc/hosts}"
|
||||
# the environment, and POSIX [[:space:]] matches whitespace characters other
|
||||
# than just space and tab. These variables provide an easier, portable way to
|
||||
# test for just these two characters.
|
||||
_TAB_=$'\t'
|
||||
_SPACE_=$' '
|
||||
_TAB_SPACE_="${_TAB_}${_SPACE_}"
|
||||
_TAB_SPACE_CC_="[${_TAB_SPACE_}]"
|
||||
export _TAB_=$'\t'
|
||||
export _SPACE_=$' '
|
||||
export _TAB_SPACE_="${_TAB_}${_SPACE_}"
|
||||
export _TAB_SPACE_CC_="[${_TAB_SPACE_}]"
|
||||
|
||||
###############################################################################
|
||||
# Debug
|
||||
|
Loading…
Reference in New Issue
Block a user