title: powershell bash loops are randomly stuck waiting for keyboard input
body: <p>I have bash script I am running from powershell in windows that does a <code>for</code> loop.  Every once in a while, one of the loop iteration hangs until I hit enter on the keyboard.<br>
  This doesn't happen all the time, in fact, it happens pretty rarely, but it still does.  </p>
  
  <p>The interesting thing is that my loop innards is basically <code>time _command_</code> and so after I hit enter, it'll tell me how long the command took to run.  The command actually takes way less time to execute than the loop iteration takes - because it's waiting for keyboard input for some odd reason.</p>
  
  <p>It's pretty annoying to leave a script running overnight and come back in the morning to see that it didn't get very far.</p>
  
  <p>Does someone knows WHY this happens and WHAT to do to get around it?</p>
  
  <p>Thanks,
  jbu</p>