#sccs	"@(#)fndcmd:basename.sh	1.1"

a=`expr //${1-.} : '.*/\(.*\)'`
if test $a
then
expr $a : "\(.*\)$2$" \| $a
fi
