Finding the path to a executable?

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Sat Aug 10 22:24:12 PDT 2013


On Sun, 11 Aug 2013 00:45:43 -0400
Nick Sabalausky <SeeWebsiteToContactMe at semitwist.com> wrote:

> On Wed, 7 Aug 2013 10:06:19 -0700
> "H. S. Teoh" <hsteoh at quickfur.ath.cx> wrote:
> 
> > On Wed, Aug 07, 2013 at 12:55:10PM -0400, Nick Sabalausky wrote:
> > 
> > > If it were up to me, args[0] would be eliminated outright.
> > 
> > Naw, there are some valid use cases for it. Take a look at busybox,
> > for example. :)
> > 
> 
> Hmm, interesting tool. And you're right, I can't think of a better way
> than args[0] to do what it does.
> 
> In any case, Phobos needs to have this "get current executable's path"
> function if it doesn't already.
> 

Pull request:
https://github.com/D-Programming-Language/phobos/pull/1463

It's updated from an older version that I had in here:
https://bitbucket.org/Abscissa/semitwistdtools/src/c7f89f7cd2c086591b544d5bffc536827ae6f763/src/semitwist/util/io.d?at=master#cl-190



More information about the Digitalmars-d mailing list