import os, osproc
var process = startProcess("/usr/bin/true", "/usr/bin")
The workingDir parameter of startProcess apparently does not only change the working directory of the started process, but also of the application itself.
@flyx just to be sure what OS and what flags you have used when compiling?
Add test for #4867
@cheatfate I am on OSX, mostly on current devel, where I found this problem. I did not use any flags.
One more attempt to fix #4867