Message-ID: <37F752EA.A1B8B796@softhome.net> Date: Sun, 03 Oct 1999 14:58:19 +0200 From: Laurynas Biveinis X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: lt,en MIME-Version: 1.0 To: Eli Zaretskii CC: djgpp-workers AT delorie DOT com Subject: Re: Help with arg passing References: Content-Type: multipart/mixed; boundary="------------A8CC31A5464A1C9F6ECE4264" Reply-To: djgpp-workers AT delorie DOT com This is a multi-part message in MIME format. --------------A8CC31A5464A1C9F6ECE4264 Content-Type: text/plain; charset=iso-8859-4 Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > I cannot reproduce this; on my machine argv[0] _is_ printed. > > Did you change anything in dosexec.c, system.c, or the startup code? > If so, perhaps those changes are responsible. This happens with about week old CVS sources. I attached actual files and here command lines for compiling and calling them: C:\DJGPP\Programs\djgpp>gcc test_lfn.c -o test_lfn.exe C:\DJGPP\Programs\djgpp>gcc VeryLongName.c -o VeryLongName.exe C:\DJGPP\Programs\djgpp>test_lfn Hello from VeryLongName.exe! C:\DJGPP\Programs\djgpp>VeryLongName Hello from VeryLongName.exe! c:/djgpp/programs/djgpp/verylong.exe C:\DJGPP\Programs\djgpp> --------------A8CC31A5464A1C9F6ECE4264 Content-Type: text/plain; charset=iso-8859-4; name="VeryLongName.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="VeryLongName.c" #include int main(int argc, char *argv[]) { printf("Hello from VeryLongName.exe!\n"); printf("%s\n", argv[0]); return 0; } --------------A8CC31A5464A1C9F6ECE4264 Content-Type: text/plain; charset=iso-8859-4; name="test_lfn.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test_lfn.c" #include int main(void) { system("VeryLongName.exe" " 1234567890 1234567890 1234567890 1234567890 234567890" " 1234567890 1234567890 1234567890 1234567890 1234567890" " 1234567890 1234567890"); return 0; } --------------A8CC31A5464A1C9F6ECE4264--