mitchellh/packer — pull request #537 by mwhooker (2013-10-15 12:58:17+00:00)
Title: provisioner/shell: fix EOF detection

Fixes #507

The scanUnixLine function was erroneously returning empty lines when EOF
was reached.
This commit adds a test for the problem and changes the scanUnixLine
function to elide the trailing \n if no content was read.