Fixed typeset +m is a zsh specific feature (#49)

This commit is contained in:
Chai Feng 2019-05-10 00:28:49 +08:00 committed by Toan Nguyen
parent c35410e847
commit a0ed0675e7

@ -79,7 +79,7 @@ function try_alias_value() {
# 0 if the variable exists, 3 if it was set
#
function default() {
test `typeset +m "$1"` && return 0
typeset -p "$1" &>/dev/null && return 0
typeset -g "$1"="$2" && return 3
}