#!/bin/sh
#-*- tab-width: 4; -*-
# ex:ts=4

error()
{
	echo 1>&2 "*** ERROR[${1}]:${2}"
	exit 1
}

foo()
{
	case $1 in
	-a|-b|-c)
		echo "option \"$1\" specified"
		;;
	*)
		error foo "option \"$1\" not found"
		;;
	esac
}

bar()
{
	foo -a
	foo -k
	foo -b
}

bar

echo "INT done"
