Mail Archives: djgpp-workers/1999/10/03/09:56:31
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 <stdio.h>
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 <stdlib.h>
int main(void)
{
system("VeryLongName.exe"
" 1234567890 1234567890 1234567890 1234567890 234567890"
" 1234567890 1234567890 1234567890 1234567890 1234567890"
" 1234567890 1234567890");
return 0;
}
--------------A8CC31A5464A1C9F6ECE4264--
- Raw text -