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:
William Melody 2015-09-12 14:13:00 -07:00
parent a33b38b204
commit 84d77b8aec
1 changed files with 4 additions and 4 deletions

8
hosts
View File

@ -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