[Issue 16595] New: thisExePath resolves symlinks but this isn't mentioned in docs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 4 18:35:10 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16595

          Issue ID: 16595
           Summary: thisExePath resolves symlinks but this isn't mentioned
                    in docs
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

```
import std.file;
import std.stdio;
void main(){
  writeln(thisExePath);
}
```

```
cd /tmp/
rdmd -oftest main.d
ln -s ./test ./test_foo
./test_foo
/tmp/test
```

expected result:
/tmp/test_foo

Workaround?

--


More information about the Digitalmars-d-bugs mailing list