title: How can I join elements of an array in Bash?
body: <p>If I have an array like this in Bash:</p>
  
  <pre><code>FOO=( a b c )
  </code></pre>
  
  <p>How do I join the elements with commas?  For example, producing <code>a,b,c</code>.</p>