X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fbad-input%2Ftest-header;h=9e66296ded055704a9156cb2c09b2093c96650ed;hb=57cd23b8807fa351800ba7277c5636a133241166;hp=98e8c7a4697c3461c444213a199f14a63e2a2240;hpb=f0bcd0b87a07dbe86db190f554a77fd89f4823d8;p=mmh diff --git a/test/bad-input/test-header b/test/bad-input/test-header index 98e8c7a..9e66296 100755 --- a/test/bad-input/test-header +++ b/test/bad-input/test-header @@ -6,8 +6,8 @@ ###################################################### if test -z "${MH_OBJ_DIR}"; then - srcdir=`dirname $0`/../.. - MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "$MH_OBJ_DIR/test/common.sh" @@ -18,8 +18,8 @@ expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/$$.actual # Write message with bogus header field (missing blank line, really). -msgfile=$(mhpath new) -msgnum=$(basename $msgfile) +msgfile=`mhpath new` +msgnum=`basename $msgfile` cat > $msgfile < $expected < $actual 2>&1 +scan -width 80 $msgnum > $actual 2>&1 check $expected $actual # check show (mhl)