I have the following bash script:
# do some time consuming task here read -p "Give me some input: " input
Now as you might have guessed, if a user presses some random keys during the "time consuming task", the unwanted input is taken into account as well. How do I clear
stdin (or at least ignore it) before I issue the read command?