X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Ftests%2Finc%2Ftest-read-stdin;fp=test%2Ftests%2Finc%2Ftest-read-stdin;h=d771d32918a83670281f9babe358c1e48ebc51b1;hb=a0bb92c9f397eb69914be03d7de16ae8e83e7426;hp=0000000000000000000000000000000000000000;hpb=501f523802eeaed49dc095c9577a9e5f20447a6d;p=mmh diff --git a/test/tests/inc/test-read-stdin b/test/tests/inc/test-read-stdin new file mode 100644 index 0000000..d771d32 --- /dev/null +++ b/test/tests/inc/test-read-stdin @@ -0,0 +1,66 @@ +#!/bin/sh +########################################################## +# Test incorporating mail from stdin with `inc -file -`. # +########################################################## +. "$MH_TEST_COMMON" + +# Test empty stdin from a pipe. +runandcheck "printf '' |inc -file -" <$f && inc -file - <$f" <$f && inc -file - <$f" <