Subject: Re: bug#6674: PATCH: fix assignment of grep-find-use-xargs on Windows/MS-DOS

From: Laimonas Vėbra <[email-masked]>
Date: Mon, 02 Aug 2010 13:26:40 +0300

Óscar Fuentes wrote:

> The issue is that "cmd.exe -c" seems to have a 1024 char limit when the
> command contains a pipe (my guess is that the limit applies separatelly
> to every command on the pipe chain) and cmdproxy.c prepends "cmd.exe -c"
> to the command when it has a pipe, redirection, etc.

Isn't it wsprintf (used in cmdproxy.c to quote args and for other purposes):
http://msdn.microsoft.com/en-us/library/ms647550(VS.85).aspx

that imposes 1024 buffer/string length limit...?