delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/14/19:15:48

Date: Wed, 14 Jan 1998 19:15:45 -0500 (EST)
Message-Id: <199801150015.TAA21599@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: robert DOT hoehne AT gmx DOT net
CC: djgpp-workers AT delorie DOT com
In-reply-to: <34BD2B38.8F094DF5@gmx.net> (message from Robert Hoehne on Wed,
14 Jan 1998 22:16:40 +0100)
Subject: Re: spawn() problem

> Is it a bug or a feature of the spawn... functions, that
> the called DJGPP program ignores the argv0 value of the
> stub? (when spawn.. is called directly and not through
> system() )?

Feature.  argv0 comes from argv[0] which is part of argv[] which is
passed directly with spawn().

Unix does it this way also.

> I ask this, because in my last uploaded bnu281b.zip

Corrupt zip, BTW.  Please re-upload.

> I have made for instance ranlib.exe as a symbolic
> link to ar.exe with argv0=ranlib (NOT ranlib.exe). But
> when running now a makefile under bash, it fails when
> running ranlib, since now ar.exe (to which ranlib.exe
> points to) recognises not that it is called as ranlib
> because it sees ranlib.exe and not (what I customized
> in the stub) only ranlib.

gzip needed to be fixed because of this also.

- Raw text -


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