Thread overview
[Issue 11363] std.process should offer a way to run a executable with a given working directory
Sep 09, 2014
Vladimir Panteleev
Sep 09, 2014
Ketmar Dark
Sep 09, 2014
Vladimir Panteleev
Sep 09, 2014
Vladimir Panteleev
September 09, 2014
https://issues.dlang.org/show_bug.cgi?id=11363

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
September 09, 2014
https://issues.dlang.org/show_bug.cgi?id=11363

Ketmar Dark <ketmar@ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar@ketmar.no-ip.org

--- Comment #3 from Ketmar Dark <ketmar@ketmar.no-ip.org> ---
(In reply to Sobirari Muhomori from comment #2)
> workDirFD = open(toStringz(workDir), O_RDONLY);
> How this behaves if workDir is not null, but empty?
workDirFD will be "-1" (i.e. open() fails).

--
September 09, 2014
https://issues.dlang.org/show_bug.cgi?id=11363

--- Comment #4 from Vladimir Panteleev <thecybershadow@gmail.com> ---
It fails on Windows too.

Is it a bug? If you specify empty / non-null parameter to the OS API it will fail as well.

--
September 09, 2014
https://issues.dlang.org/show_bug.cgi?id=11363

--- Comment #5 from Vladimir Panteleev <thecybershadow@gmail.com> ---
https://issues.dlang.org/show_bug.cgi?id=13445

--