# A here-document cut off by end of input has an empty body: the delimiter
# word must not be used as the body.
"$TSH" -c 'cat <<EOT'; echo "[rc=$?]"
"$TSH" -c 'cat <<"EOT"'; echo "[rc=$?]"
printf 'cat <<EOF\nline1' | "$TSH"
printf 'cat <<EOF\nline2\n' | "$TSH"