How to check for no input in bash read?
unset input
while [ -z ${input} ]; do
read input
done
No inputs (or even spaces I believe) get entered as empty strings, so check input while the input var is empty:
input=
while [[ $input = "" ]]; do
read input
done