On 8/22/2016 3:31 PM, Morten Kjærulff wrote: > > This: > > date > echo a | while read ; do > sleep 3 & > done > wait > date > > will run in 0 seconds, with BOTH /bin/sh and /bin/bash > > This: > > date > while read ; do > sleep 3 & > done < <(echo a) > wait > date > > will run in 3 seconds with /bin/bash and get syntax errors with /bin/sh: > syntax error near unexpected token `<' > `done < <(echo a)' >
See http://stackoverflow.com/questions/12120598/syntax-error-in-shell-script-with-process-substitution for the answer to your quandary. -- cyg Simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple