3 # Duplicates are also fatal in obsolete marked entries (cf. msgmerge-3).
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mm-test9.in1 mm-test9.in2"
9 cat <<EOF > mm-test9.in1
18 cat <<EOF > mm-test9.in2
24 tmpfiles
="$tmpfiles mm-test9.err"
25 : ${MSGMERGE=msgmerge}
26 LC_MESSAGES
=C LC_ALL
= \
27 ${MSGMERGE} -q mm-test9.in1 mm-test9.in2
-o /dev
/null \
28 2>&1 |
grep -v '^==' > mm-test9.err
30 tmpfiles
="$tmpfiles mm-test9.ok"
31 cat << EOF > mm-test9.ok
32 mm-test9.in1:3: duplicate message definition
33 mm-test9.in1:1: ...this is the location of the first definition
34 msgmerge: found 1 fatal error
38 ${DIFF} mm-test9.ok mm-test9.err