[Issue 13518] New: thisExePath returns different results on Linux and Mac OSX
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Sep 21 21:02:20 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13518
Issue ID: 13518
Summary: thisExePath returns different results on Linux and Mac
OSX
Product: D
Version: D2
Hardware: x86_64
OS: All
Status: NEW
Severity: major
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: dlang at chillichef.com
When the executable is symlinked to another location, running thisExePath on
Linux gives the symlinked location. Doing the same on Mac OSX returns the
original location (doesn't follow the symlink).
Both outcomes are wanted in some cases though so when fixing this, maybe it is
a good idea to add an optional flag to follow symlinks? (I think it makes sense
for the flag defaultto to be false)
--
More information about the Digitalmars-d-bugs
mailing list