arguments+=() expected_exitcode=255 # set IFS="" if you want trailing new lines, otherwise remove it IFS="" read -d '' expected_output <<'EOF' invalid template line: can't find template name ./makepkg-template-tests/invalid-template-line-missing-name/PKGBUILD:1: # template input; EOF IFS="" read -d '' expected_result <<'EOF' EOF