#!/bin/sh

# Par Julien MOREAU	( jmoreau@bigfoot.com )

# Demande de repondre par un mot commencant par :
#	- un Y ou un O	=> retourne alors 0
#	- un N		=> retourne alors 1
# La casse (minuscule/majuscule) n'influent pas.

if test `uname` != "HP-UX" ; then e="-e" ; fi

while true ; do
	if [ $# -ge 1 ] ; then echo $e "$* (o/n) ? \c" ; fi
	read rep
	case $rep in
		[OoYy]*) exit 0 ;;
		[Nn]*) exit 1 ;;
		*) echo "Reponse erronée !"
	esac
done

