replace all -v checks with equivalents (trying to port to zsh 5.2)
This commit is contained in:
parent
6ef8e2f0cf
commit
361eec6f95
3 changed files with 8 additions and 8 deletions
|
@ -22,7 +22,7 @@ function set_default() {
|
|||
|
||||
local varname=$1
|
||||
shift
|
||||
if [[ -v $varname ]]; then
|
||||
if [[ -n ${(tP)varname} ]]; then
|
||||
typeset $flags $varname
|
||||
elif [[ "$flags" == *[aA]* ]]; then
|
||||
eval "typeset ${(@q)flags} ${(q)varname}=(${(qq)@})"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue