if [ -d /cdrom ];then while echo "Deletion of \"/cdrom\" ? (Y/N)"; read yes case "$yes" in y|n) false;; esac; do # それ以外は、もう一度尋ねる echo "!:$yes?" 1>&2 done if [ $yes = y ]; then # y は、/cdrom 削除 unmount /cdrom rmfs '/cdrom' rm -R /cdrom print "Deleted \"/cdrom\" !"; fi fi