title: Is there a way to create key-value pairs in Bash script?
body: <p>I am trying to create a dictionary of key value pair using Bash script. I am trying using this logic:</p>
  
  <pre><code>declare -d dictionary
  defaults write "$dictionary" key -string "$value"
  </code></pre>
  
  <p>...where <code>$dictionary</code> is a variable, but this is not working.</p>
  
  <p>Is there a way to create key-value pairs in Bash script?</p>