delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/10/03/09:56:31

Message-ID: <37F752EA.A1B8B796@softhome.net>
Date: Sun, 03 Oct 1999 14:58:19 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.61 [en] (Win98; I)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
Subject: Re: Help with arg passing
References: <Pine DOT SUN DOT 3 DOT 91 DOT 991003121026 DOT 16555K-100000 AT is>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019