#!/usr/bin/env tsh : : tsh - " Force sh(1), csh(1), and other shells to exit w/ error! " <'' ;;; : : " @(#)$Id: acf1cc2db86d71400a89e76d10cb01b30fd8abfb $ " : : " The author of this file, J.A. Neitzel , " : " hereby grants it to the public domain. " : : : " Print usage message for command and exit w/ a non-zero status. " : : " usage: pusage command [message] " : : : " Check for correct usage. " : : >>$0'' <'' ; : >>$1'' <'' ; : >>$2'' <'' ; : >>$3'' <'' killer $0 pusage if X$1 = X -o X$3 != X if { exit } pusage $0 '"command [message]"' ( echo -n 'usage: ' ; basename $1 | tr -d '\n' ; echo \ $2 ) | fd2 -e cat false