Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: From: "Willis, Matthew" To: "'cygwin AT cygwin DOT com'" Subject: RE: cygwin 1.3.20-1 - strange problems with long command lines in nt4 Date: Wed, 12 Mar 2003 13:00:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" > Igor wrote: > You may be hitting the command-line limit with bash. Try the above with > cmd.exe. See below. >> c:\cygwin\bin\echo.exe %PATH% -- works fine >> c:\cygwin\bin\echo.exe %PATH%%PATH% -- fails, immediately returns to command line > >Try stracing the last line above... > Igor I can replicate the behavior in cmd.exe; strace returns a zero byte file. C:\>c:\cygwin\bin\strace.exe -o foo.txt c:\cygwin\bin\echo.exe %PATH% C:\texmf\miktex\bin;C:\WINNT\system32;C:\WINNT;c:\FpAddin;c:\FpAddinLon;C:\w in32 app\Sybase\DLL;C:\win32app\Sybase\BIN;C:\FpAddin;C:\OptexNT\vendordll;C:\Opt exNT \dll;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program File s\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual S tudio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin C:\>c:\cygwin\bin\wc.exe foo.txt 269 2712 27213 foo.txt C:\>c:\cygwin\bin\strace.exe -o foo.txt c:\cygwin\bin\echo.exe %PATH%%PATH% C:\>c:\cygwin\bin\wc.exe foo.txt 0 0 0 foo.txt Interestingly, I /can/ pass long command lines with bash to programs built using vc++. I built a test prog (myecho.exe) using vc++, /* myprog.c */ int main(int argc, char* argv[]) { for (int i=0;i