User:Scsbot/formtools/formcheckfields

tag=$1 shift


 * 1) could optimize this by doing in-line, rather than calling formgettmpfile

exitstat=0

for fieldname in $* do x=`formgettmpfile $tag $fieldname` if test -z "$x" then # formgettmpfile might eventually print err msg echo "$tag: field $fieldname not found" &gt;&amp;2 exitstat=1 fi done

exit $exitstat