Xref: news2.mv.net comp.os.msdos.djgpp:6256 From: Orbital Newsgroups: comp.os.msdos.djgpp Subject: bug in exec/spawn ? Date: Mon, 22 Jul 1996 11:43:14 +0300 Organization: LITNET Lines: 11 Message-ID: NNTP-Posting-Host: zveris.pit.ktu.lt Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I wrote this program which loads its confguration file from the directory where the executable is. I use argv[0] to determine it. However, when my program is invoked from make or rhide, it can never find the cfg file. I wrote a little test prg, smth like puts(argv[0]); and when invoked from make or rhide it displays *only* its name, *without* the path. What gives? Martynas