Forgive me if this is the wrong group to post this to. I'm writing a simple shell script to kick off a few long-running tasks in parallel on my Windows 10 system running "GNU bash, version 4.4.12(1)-release (x86_64-pc-msys)".
Here's my test code:
The second half of the code (starting at "Fails with mintty") is the same code but with the "sleep" commands changed to call "mintty" instead. When this runs, the MinTTY terminals open and sleep for the requested time, BUT the "jobs -p" doesn't see the sleeping MinTTY processes so the for loop exits even though the MinTTY windows are still running.
Is there something special about calling MinTTY that I'm missing?
Thanks!
Dan