Writing EOF (End of File) on Windows 7 with bootcamp
In Windows, use Ctrl+Z to enter an EOF. If you're not on an empty line, you'll need to press that shortcut twice, once to flush the buffer of the current line, and the second to send the actual EOF.