3 # Test --omit-header option when there is no header.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcomm-test3.in1 mcomm-test3.in2"
9 cat <<EOF > mcomm-test3.in1
15 cat <<EOF > mcomm-test3.in2
21 tmpfiles="$tmpfiles mcomm-test3.tmp mcomm-test3.out"
23 ${MSGCOMM} --more-than=0 --omit-header -o mcomm-test3.tmp \
24 mcomm-test3.in1 mcomm-test3.in2
25 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
26 LC_ALL=C tr -d '\r' < mcomm-test3.tmp > mcomm-test3.out
27 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
29 tmpfiles="$tmpfiles mcomm-test3.ok"
30 cat << EOF > mcomm-test3.ok
41 ${DIFF} mcomm-test3.ok mcomm-test3.out