Mail Archives: djgpp-workers/1998/01/14/19:15:48
> 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 -