On Thursday, 4 April 2013 at 16:50:15 UTC, Andrej Mitrovic wrote:
<quote>
Unless a directory is specified in args[0] or program, spawnProcess will search for the program in the directories listed in the PATH environment variable. To run an executable in the current directory,
use "./executable_name".
</quote>

This does not apply for Windows, so it should state that.

It does apply to Windows. It just isn't necessary to do it within std.process, as Windows' own CreateProcess() takes care of it.

It is a bit imprecise, though, because CreateProcess() does in fact search a lot of other directories first (current working dir, parent process dir, system32, etc.). In fact, PATH is last on that list. ;) I'll clarify this in the documentation.

Lars

Reply via email to