title: Variable is concatenating, not incrementing in BASH
body: <p>Here is the code: </p>
  
  <pre><code>v=0
  for var in "$@";do
          echo $var
          v+=1
          echo $v
  done
  </code></pre>
  
  <p>Here is the command:</p>
  
  <pre><code>$ bash MyScript.sh duck duck goose
  </code></pre>
  
  <p>Here is the output:</p>
  
  <pre><code>duck
  01
  duck
  011
  goose
  0111
  </code></pre>
  
  <p>So it appears (to me) to be treating the variable v as a string or not an integer. I am not sure why it would do this and I feel like this is a simple issue that I am just overlooking one small detail. </p>
  
  <p>Is this an example of the pitfalls of non-static typing?</p>
  
  <p>Thanks,</p>