title: Arrays in a POSIX compliant shell
body: <p>According to <a href="http://hyperpolyglot.org/shell#resizable-array-literal" rel="noreferrer">this reference sheet on hyperpolyglot.org</a>, the following syntax can be used to set an array.</p>
  
  <pre><code>i=(1 2 3)
  </code></pre>
  
  <p>But I get an error with <em>dash</em> which is the default for <code>/bin/sh</code> on Ubuntu and should be POSIX compliant.</p>
  
  <pre><code># Trying the syntax with dash in my terminal
  &gt; dash -i
  $ i=(1 2 3)
  dash: 1: Syntax error: "(" unexpected
  $ exit
  
  # Working fine with bash
  &gt; bash -i
  $ i=(1 2 3)
  $ echo ${i[@]}
  1 2 3
  $ exit
  </code></pre>
  
  <p>Is the reference sheet misleading or erroneous?<br>
  If yes, what would be the correct way to define an array or a list and be POSIX compliant?</p>