www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16595] New: thisExePath resolves symlinks but this isn't

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 puremagic.com
          Reporter: timothee.cour2 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?

--
Oct 04 2016