www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/10/03/06:26:34

Date: Sun, 3 Oct 1999 12:10:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurynas Biveinis <lauras AT softhome DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: Help with arg passing
In-Reply-To: <37F3B148.8D5BC224@softhome.net>
Message-ID: <Pine.SUN.3.91.991003121026.16555K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 30 Sep 1999, Laurynas Biveinis wrote:

> If I run test, I get:
> 
> Hello from VeryLongName.exe!
> c:/djgpp/programs/djgpp/verylong.exe
> 
> Correct. But If delete '/*' and '*/' from test.c to
> enable long command line, I get:
> 
> Hello from VeryLongName.exe!
> 
> And argv[0] is _not_ printed.

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.

If this happens with stock libc.a, please send me the exact source of
both files which, when compiled, exhibit this behavior (I don't want
to guess what exactly did you remove from test.c to enable the long
command line).

Also note that test.c is a bad name for a test program, since some
shells have a built-in command named `test'.  (I doubt this is your
problem, though.  But anyway, my test program is called `lfntest', not
`test'.)

- Raw text -


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