I don't know why this happens but I have the following snipped:
exec<$filename
while read line
do
...
done
in order to read a file line by line
after that I have
while true
do
echo "message"
read WISH2
case $WISH2 in
y|Y|yes|Yes) dosomething; break ;;
n|N|no|No) EXIT ;;
*) echo "Not valid option";
esac
done
what happens is that the last loop never stops at the read! just displays message message message message
does anyone know how to fix this?!