# nothing in the output should be locale-dependent.
tmpfiles="greeting-test1.ok"
-cat <<EOF > greeting-test1.ok
+cat <<EOF >greeting-test1.ok
Nothing happens here.
EOF
tmpfiles="$tmpfiles greeting-test1.out"
: ${HELLO=hello}
-${HELLO} -g 'Nothing happens here.' > greeting-test1.out
+${HELLO} -g 'Nothing happens here.' >greeting-test1.out
+# remove \r (CR) characters from the output, so that the tests work on
+# platforms with CRLF line endings.
+#
: ${DIFF=diff}
${DIFF} greeting-test1.ok greeting-test1.out
result=$?