delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/21/14:53:56

From: Jerry van Dijk <jerry AT jvdsys DOT nextjk DOT stuyts DOT nl>
Subject: go32 program name expansion
To: djgpp AT delorie DOT com
Date: Sat, 20 Jan 1996 22:00:51 +0100 (MET)

Hi,

Recently I noticed a difference in program name expansion between a
coff2exe-ed and a go32 prog.cof run.

ie.

#include <stdio.h>

int main(int argc, char *argv[])
{
	printf("This program is %s\n", argv[0]);
	return 0;
}

prints the path as typed in when run from go32, but the fully expanded
path when run as an .exe file.

Is there a solution to get it to return the same path regardless of running
as an exe or as an coff under gdb ?

Is this still a problem using V2 ?

Thanks in advance,
Jerry.

- Raw text -


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