SOLVED: sh syntax mistakes here-strings for here-docs
Thank you! That was what I needed to know.
I've updated the example with the resolution here:
For historical purposes the errant version is here:
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php