[[ -v <var> ]] and bash5
In bash 4.4+ (I think it was 4.4), [[ -v <var> ]]
behaves differently from the versions before.
In Line 192
this occures.
#@ bini_db_is_loaded <db-name>
# check if db is loaded
# errors 2, 51, 52
function bini_db_is_loaded() {
(( $# == 1 )) || {
bb_ierr "bini_db_is_loaded called with $# args instead of 1"
return 2
}
local _dbname=$1
_bini_validate_dbname "$_dbname" || return 51
[[ -v "bini_db_$_dbname" ]] || return 52
}