#
# Checking whether SCCS ${cmd} supports extended options
#
if test ! -x ${ocmd}
then
	echo "XFAIL SCCS command \"${cmd}\" not found"
else
	expect_fail=true
	docommand --silent go0 "${ocmd} -V > $output 2> $error" IGNORE "" IGNORE
	expect_fail=false
	if test $cmd_exit -ne 0
	then
		if grep "CSSC " $error > /dev/null
		then
			echo "XFAIL SCCS ${cmd} clone supports -V but exit code is $cmd_exit"
			echo_nonl "Output was: "
			grep "CSSC " $error | head -1
		else
			echo "XFAIL Old SCCS ${cmd} without -V support detected, exit code is $cmd_exit"
		fi
	else
		if grep SCCS $output > /dev/null
		then
			echo "SCCS ${cmd} supporting -V detected"
			echo_nonl "Output was: "
			grep SCCS $output
		elif grep "CSSC " $error > /dev/null
		then
			echo "SCCS ${cmd} clone supporting -V detected"
			echo_nonl "Output was: "
			grep "CSSC " $error | head -1
		else
			echo "Old SCCS ${cmd} without -V support detected"
		fi
	fi
fi