Skip to content

thisExePath resolves symlinks but this isn't mentioned in docs #9694

@dlangBugzillaToGithub

Description

@dlangBugzillaToGithub

timothee.cour2 (@timotheecour) reported this on 2016-10-05T01:35:10Z

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

CC List

Description

```
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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions