What happens when `read -p` runs in a background Bash script?
If a Bash script contains `read -p "Press [Enter] key to continue..."` and the script is started in the background, what happens to the `read` command? Does the…
If a Bash script contains `read -p "Press [Enter] key to continue..."` and the script is started in the background, what happens to the `read` command? Does the…
I'm trying to understand why the following Bash loop doesn't exit on its first iteration, even though I expect it to. Here's the code I'm using: ```bash while…