title: Add multiple variables to an associative array
body: <p>I am trying to environment variables to map to use elsewhere?</p>
  <p>For example.</p>
  <p>I have a script to get some variables which are predefined in the environment e.g.</p>
  <pre><code>$var1
  $var2
  
  aarray='{$var1, $var2}'
  </code></pre>
  <p>I need to use this map to add as a variable in another script. However this array, doesn't pick up the variables, is there a correct way to do this?</p>