1touch .file
2set -e
3while set +e ; test -r .file ; do
4	echo -n "stop loop? [yes to quit] "
5	read reply
6	if [ "$reply" = yes ] ; then
7		rm .file non-dash-file
8	fi
9	set -e
10done
11rm -f .file
12