]> diplodocus.org Git - nmh/blobdiff - test/mkstemp/test-mkstemp
Don't `else' after return. Simplify control flow.
[nmh] / test / mkstemp / test-mkstemp
index 084f649a7f8ff8ec0cea777d7c684741d4a2fabc..fcc8cd57284450219c34163ecdd2a943aee89e54 100755 (executable)
@@ -47,8 +47,9 @@ else
        EOF
 fi
 
        EOF
 fi
 
-$mkstemp -h >$actual 2>&1
-check $expected $actual
+#### Skip nmh intro text.
+run_prog $mkstemp -h | sed '/^$/,$d' >"$actual" 2>&1
+check "$expected" "$actual"
 
 
 # check -version
 
 
 # check -version