X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Finc%2Ftest-eom-align;h=5acdc0eb0897302136934fe4b9e3f7480733ddb6;hb=df215b409be636447d5ae80dc20eace0a6ada1b8;hp=c6e6225fb202ac7b50789ece4f87155296718b4f;hpb=8f75811e49388577186fc634e931edc1834b59c9;p=mmh diff --git a/test/inc/test-eom-align b/test/inc/test-eom-align index c6e6225..5acdc0e 100755 --- a/test/inc/test-eom-align +++ b/test/inc/test-eom-align @@ -38,7 +38,7 @@ FILLER="$THISDIR/filler.txt" FROMLINE="$THISDIR/fromline.txt" HDR="$THISDIR/msgheader.txt" -if grep -q From "$FILLER"; then +if grep From "$FILLER" >/dev/null; then echo "Somebody's messed with $FILLER -- it must not contain" echo "anything that might look like a message delimiter!" exit 1 @@ -51,8 +51,8 @@ fi # bigger as well. STDIO_BUFSZ=16384 -FROMLINESZ=`wc -c "$FROMLINE" | cut -d ' ' -f 1` -HDRSZ=`wc -c "$HDR" | cut -d ' ' -f 1` +FROMLINESZ=`wc -c < "$FROMLINE"` +HDRSZ=`wc -c < "$HDR"` # makembox_A mboxname sz # Assemble a mailbox into file mboxname, with two messages, such