title: Shell script "for" loop syntax
body: <p>I have gotten the following to work:</p>
  
  <pre><code>for i in {2..10}
  do
      echo "output: $i"
  done
  </code></pre>
  
  <p>It produces a bunch of lines of <code>output: 2</code>, <code>output: 3</code>, so on.</p>
  
  <p>However, trying to run the following:</p>
  
  <pre><code>max=10
  for i in {2..$max}
  do
      echo "$i"
  done
  </code></pre>
  
  <p>produces the following:</p>
  
  <pre><code>output: {2..10}
  </code></pre>
  
  <p>How can I get the compiler to realize it should treat $max as the other end of the array, and not part of a string?</p>