On Thu, Sep 9, 2010 at 3:53 PM, Axel Holzinger <aholzinger@gmx.de> wrote:
I think I found the reason for MinGW/MSys bash having the 8192
characters limit. I think MinGW/MSys bash is compiled as a Windows
console application which brings up Windows' cmd.exe code which does
the Window handling and keyboard/mouse input. And this part is known
to have the 8192 characters input.

I doubt console application have something to do with cmd.exe shell. I'd say OS just creates console (as in http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx) for std handles when process can't inherit one from parent.

To gain the 32768 characters commandline that NT/XP/Vista/7 offers via
its CreateProcess function MinGW/MSys bash would need to be a native
Win32 application instead of a console application.

Nitpick warning: "native win32 application" is not correct term here. It is obvious what you mean ("GUI win32 application", the subsystem is called "GUI"). "Native" subsystem exists too and it is something different.