Date: Sun, 3 Oct 1999 12:10:47 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Laurynas Biveinis cc: djgpp-workers AT delorie DOT com Subject: Re: Help with arg passing In-Reply-To: <37F3B148.8D5BC224@softhome.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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'.)