Created
November 2, 2017 22:30
-
-
Save BarnacleBob/8b2bdb8132f5dac8c1c1f3dcd9b03ed9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "calling" | |
( | |
echo "sleeping 5" | |
( sleep 5 && echo "sleep finished" ) | |
)& | |
echo "waiting for background" | |
wait | |
echo "calling" | |
( | |
echo "sleeping 5" | |
(sleep 5 && echo "sleep finished") & | |
) | |
echo "waiting for background" | |
wait | |
echo "exit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment