Bash Return Multiple Values from a Function using an Associative Array
Jump to navigation
Jump to search
Internal
Invocation
declare -A CONFIG
load-config CONFIG
echo ${CONFIG["SOMETHING"]}
declare -A CONFIG
load-config CONFIG
echo ${CONFIG["SOMETHING"]}