Lines Matching refs:UNIT
96 [+UNIT \acommand\a [ \aarg\a ... ]]?Define the command and
111 typeset ARG SCRIPT UNIT TEMP=${TMPDIR:-/tmp}/$command.$$.tmp WORK
156 then set -A UNIT -- "$@"
159 set -A UNIT -- "${ARG%.*}"
161 WORK=${UNIT[0]}.tmp
184 function UNIT
186 (( KEEP_UNIT )) || set -A UNIT -- "$@"
189 print -u$stdout -r -f $'UNIT'
287 elif (( ! ${#UNIT[@]} ))
288 then print -u2 -r -- $command: $SCRIPT: UNIT statement or operand expected
318 else "${UNIT[@]}" "$@"
582 Usage: \\\$SHELL $PREFIX${UNIT[0]}.sh [ --accept ] [ unit ... ]
584 ${UNIT[0]} regression test script. Run this script to generate new
585 results in $PREFIX${UNIT[0]}.tmp and compare with expected results in
586 $PREFIX${UNIT[0]}.out. The --accept option generates $PREFIX${UNIT[0]}.tmp
587 and moves it to $PREFIX${UNIT[0]}.out.
621 } > $PREFIX${UNIT[0]}.tmp 2>&1 < /dev/null
624 0) if grep ' $' $PREFIX${UNIT[0]}.tmp >/dev/null
625 then mv $PREFIX${UNIT[0]}.tmp $PREFIX${UNIT[0]}.junk
627 sed 's/ $//' < $PREFIX${UNIT[0]}.junk > $PREFIX${UNIT[0]}.tmp
628 rm -f $PREFIX${UNIT[0]}.junk
630 if cmp -s $PREFIX${UNIT[0]}.tmp $PREFIX${UNIT[0]}.out
631 then echo ${UNIT[0]} tests PASSED
632 rm -f $PREFIX${UNIT[0]}.tmp
633 else echo ${UNIT[0]} tests FAILED
634 diff $IGNORESPACE $PREFIX${UNIT[0]}.tmp $PREFIX${UNIT[0]}.out
638 *) mv $PREFIX${UNIT[0]}.tmp $PREFIX${UNIT[0]}.out