#!/bin/sh # # Test of various (well, start with one) function escapes. set -e if test -z "${MH_OBJ_DIR}"; then srcdir=`dirname "$0"`/../.. MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "$MH_OBJ_DIR/test/common.sh" setup_test mhl="${MH_LIB_DIR}/mhl" expected="$MH_TEST_DIR/$$.expected" actual="$MH_TEST_DIR/$$.actual" cat >`mhpath new` <"$expected" < There are two blank lines below. And there is a trailing space: > And another trailing space: > > EOF cat >"$MH_TEST_DIR/test.format" <"$actual" check "$expected" "$actual" # check rtrim cat >"$expected" < There are two blank lines below. And there is a trailing space: > And another trailing space: > > EOF cat >"$MH_TEST_DIR/test.format" <"$actual" check "$expected" "$actual" rm -f "$MH_TEST_DIR/test.format" exit $failed