sh: Remove arbitrary length limit on << EOF markers.

This also simplifies the code.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@271593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f