Handle here-documents.

Mark all lines of the here-document as executed as many times as the
command that got the here-document fed to it.