Declare an associative array variable with the specified value

typeset

  • Declare variables and give them attributes.
    More information: <https://www.gnu.org/software/bash/manual/bash.html#Bash-Builtins>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

typeset -A {{variable}}=({{[key_a]=item_a [key_b]=item_b [key_c]=item_c}})

click the source code to copy