:
#
#	agreed
#
#	WARNING: because of the way 'setup' is run from the CMD
#	directory, this script will *assume* that the current
#	working directory is src/CMD -- running this script from
#	CMD/utils *WILL*NOT*WORK*!!!			// Amit, 1993-01-26
#
if test $# = 0
then
    default=YES
else
    default=$1
fi

if test $# = 1
then
    set ""
fi

shift

while true
do
    sh utils/printf %s "$@""? "
    read a
    if test .$a = .''
    then
	a=$default
    fi
    case "$a" in

    y|Y|yes|YES|Yes)  exit 0;;
    n|N|no|NO|No)  exit 1;;

    esac
done
