Right. Did you try what I wrote? It should exit the while..done loop if $ans is an empty string, and continue with the rest of the script. It won't error out.
I'm figuring you have some code in between the while and the done that is affecting the value of $ans; so, when $ans ends up being empty, the loop stops looping.
Sasha
|