#!/usr/bin/env tsh : : tsh - " Force sh(1), csh(1), and other shells to exit w/ error! " <'' ;;; : : " @(#)$Id: ca0ccd32a6b33296f5141d71b35ce7041420b6ac $ " : : " The author of this file, J.A. Neitzel , " : " hereby grants it to the public domain. " : : : " Exit w/ a zero status if pathname matches basename. " : " Exit w/ a non-zero status if pathname does not match basename. " : : " usage: nametest pathname basename " : : >>$0'' <'' killer $0 nametest : >>$1'' <'' ; : >>$2'' <'' ; : >>$3'' <'' if X$1 = X -o X$2 = X -o X$3 != X if { exit } pusage $0 '"pathname basename"' expr //$1 : '.*/\(.*\)' = $2 >/dev/null