Default possibly unset variables to empty

This commit is contained in:
Matthew Martin 2017-11-02 19:24:56 -05:00
parent a33c72e838
commit a9ce931439
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@
# Set up results_filter
local results_filter
if [[ $QUIET == y ]]; then
if [[ ${QUIET-} == y ]]; then
if type -w perl >/dev/null; then
results_filter=${0:A:h}/tap-filter
else

View File

@ -188,7 +188,7 @@ _zsh_highlight_apply_zle_highlight() {
integer first="$3" second="$4"
# read the relevant entry from zle_highlight
local region="${zle_highlight[(r)${entry}:*]}"
local region="${zle_highlight[(r)${entry}:*]-}"
if [[ -z "$region" ]]; then
# entry not specified at all, use default value