Mail Archives: djgpp-workers/2000/08/21/08:38:11
Eli Zaretskii wrote:
>
> > Date: Sun, 20 Aug 2000 20:36:31 +0200
> > From: Laurynas Biveinis <lauras AT softhome DOT net>
> >
> > 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
- Raw text -