title: How to use an argument in a loop definition
body: <p>thanks for your help.
  What a I doing wrong, here ? I want the numeric answer to be used in a loop but it does not return what I expected :</p>
  <pre><code>if [ &quot;$#&quot; -eq 0 ]; then
  echo -n &quot;Enter the number: &quot;
  read answer
  else
    answer=( &quot;$@&quot; )
  fi
  for i in {1..$answer} ; do echo ${i}; done
  </code></pre>
  <p>When executed, I have this:</p>
  <pre><code>me@local misc]$ ./test.sh
  Enter the number: 5
  {1..5}
  </code></pre>
  <p>I expected the echo to return 1 2 3 4 5</p>