#!	/bin/sh
#
#	@(#)twoversions.sh	13.5	(RC International)	91/12/13
#
#	Command for execution of common BSD/sysv utility.
#
#	The BSD version is executed if the env. var.
#	'BSD' is set or the command is executed with
#	the first argument being '-B' (for Berkeley)
#	otherwise the system V default is used.
#
BSD_SUFFIX=""
SYSV_SUFFIX="5"
#
UTILITY=`/usr/bin/basename $0`
#
NOTHING=${BSD=NOTSET}

if [ "$1" = "-B" ]; then
	shift;
	exec /bsd/usr/bin/$UTILITY$BSD_SUFFIX "$@"
elif [ "$BSD" != "NOTSET" ]; then
	exec /bsd/usr/bin/$UTILITY$BSD_SUFFIX "$@"
else
	exec $0$SYSV_SUFFIX "$@"
fi
