delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/12/02/11:38:08

To: olly AT mantis DOT co DOT uk (Olly Betts)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Getting a path in argv[0]
Date: Fri, 02 Dec 94 13:08:34 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>

> DJGPP seems to just give the leaf-name of the executable in argv[0],
> rather than the executable path as DOS compilers seem to.  I suppose
> this follows the UNIX style, but I have a program which uses the path
> on argv[0] to find support files.

Are you sure this is always the case?  At my place, I have the full
path, as expected.  And under DOS, this shouldn't depend on the shell
you are using, as it is under Unix, right?  But all the same: which
shell do you use?

- Raw text -


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