www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/21/08:38:11

Message-ID: <39A11355.AA36EED1@softhome.net>
Date: Mon, 21 Aug 2000 13:32:37 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
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: 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>
Reply-To: djgpp-workers AT delorie DOT com

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 -


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