Message-ID: <39A11355.AA36EED1@softhome.net> Date: Mon, 21 Aug 2000 13:32:37 +0200 From: Laurynas Biveinis X-Mailer: Mozilla 4.74 [en] (Win98; U) X-Accept-Language: lt,en MIME-Version: 1.0 To: Eli Zaretskii CC: djgpp-workers AT delorie DOT com Subject: Re: Symlink support in dosexec.c References: <39A0252F DOT D9DB130A AT softhome DOT net> <9003-Mon21Aug2000094337+0300-eliz AT is DOT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > > > Date: Sun, 20 Aug 2000 20:36:31 +0200 > > From: Laurynas Biveinis > > > > I've following little problem: > > should this code pass argv[0] as 'args.exe'? > > > > symlink("args.exe", "linkargs.exe"); > > spawnl(P_WAIT, "linkargs.exe", "args.exe", "oh", "well", NULL); > > It should, but it can't, in general. > We could have arranged to pass the correct argv0 when we invoke > programs the DJGPP way (via !proxy), but that would create subtle > differences with the case when a program is invoked via the shell, or > by `system'. So we leave this alone. Thanks for explanation. Laurynas