Why do I get "unexpected token `;'?

前端 未结 1 742
逝去的感伤
逝去的感伤 2020-12-21 18:01

I would like to run a few instances of my bash script foo.bash in background.

When I write for i in {1..10}; do ~/bin/foo.bash &am

相关标签:
1条回答
  • 2020-12-21 18:43

    & and ; are both command separators; you don't need (and can't have) both.

    for i in {1..10}; do ~/bin/foo.bash & done
    
    0 讨论(0)
提交回复
热议问题