Bug 13518 – thisExePath returns different results on Linux and Mac OSX

Status
NEW
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2014-09-22T04:02:20Z
Last change time
2024-12-01T16:22:26Z
Assigned to
No Owner
Creator
Ben Grabham
Moved to GitHub: phobos#10086 →

Comments

Comment #0 by dlang — 2014-09-22T04:02:20Z
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)
Comment #1 by bugzilla — 2019-12-11T07:50:04Z
Comment #2 by robert.schadek — 2024-12-01T16:22:26Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10086 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB