title: bash for loop work in command line, but failed in script
body: <p>When a run a for statement in debian bash command line, it works fine.
  But when I run it in a sh script or run it with bash command, it's keeping report "error near unexpected token `do'"
  Where is the difference?</p>
  
  <pre><code>[leon@www] ~/tmp $ for i in {1..10}; do echo $i; done
  1
  2
  3
  4
  5
  6
  7
  8
  9
  10
  [leon@www] ~/tmp $ bash for i in {1..10}; do echo $i; done
  -bash: syntax error near unexpected token `do'
  </code></pre>
  
  <p>BTW, all works fine in centos enviorment.</p>