https://issues.dlang.org/show_bug.cgi?id=16595
--- Comment #3 from Jacob Carlborg <d...@me.com> --- (In reply to Timothee Cour from comment #2) > at very least it should be documented; but IMO thisExePath has no business > resolving symlinks; If I recall correctly, there was no suitable function in Phobos, at the time of the implementation, that cleaned up the path so I resorted to "realpath". As a side effect it also resolves symbolic links. Actually, I don't remember if my intention was to resolve symbolic links or not. > and the function that does realpath/readlink should be > exposed as a separate function (cross platform), so user could call > realPath(thisExePath) if he wants to. What about platform consistency? Should the function always return "/proc/self/exe" on Linux forcing the user to always call "readlink". Or should they have different behavior? --