> if [ "$answer" == "y*" ] ; then Almost! :) if [[ "$answer" == y* ]] (the single-square-bracket syntax doesn't support regex matching, and the quoting you have around "y*" makes it a plain-string match) Jeremy