I'm having trouble with the read command. So I want to keep asking the user to keep entering values but once the user stops I have to stop.
I was thinking of doing while [ true ]
but then I need to know when the user stops. I heard pressing ctrl -d works on stdin but it's not working.
oh and I can't have the user press any key to exit.