cmake.exe clears console input buffer
Pasting a stack of commands into the Windows 'Command Prompt' console e.g.
cmake -version echo Hallo
results in unexpected behavior: Everything beyond the first
cmake.exe ... command is discarded.
This comes from
BasicConsoleBuf.sync() implementation calling
But according to http://en.cppreference.com/w/cpp/io/basic_streambuf/pubsync
sync() shouldn't do that.
Instead it should reread into
m_ibuffer similar to what we find in