Return successfully if the array is empty.
local -a ARRY mbfl_array_is_empty ARRY ⇒ 0 ARRY=(a b c) mbfl_array_is_empty ARRY ⇒ 1
Return successfully if the array is not empty.
local -a ARRY mbfl_array_is_not_empty ARRY ⇒ 1 ARRY=(a b c) mbfl_array_is_not_empty ARRY ⇒ 0
Print the number of pairs in the array.
The function variant _var
stores the result in the variable _RV, rather than print it;
Result variables.
local -a ARRY mbfl_array_length ARRY -| 0 ARRY=(a b c) mbfl_array_length ARRY -| 3 local _RV mbfl_array_length_var _RV ARRY "$_RV" -| 3