Bug in Phobos' process.d: "Executable file not found" is supposed to show executabloe name but fails
Van de Bugger via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 14 06:02:26 PDT 2014
I found a bug in Phobos library, but failed to find a way to
report it. I do not see "Issues" tab on page
https://github.com/D-Programming-Language/phobos, so I'll report
the bug here.
Look at file process.d line ~360, it is the very beginning of
function spawnProcessImpl:
const(char)[] name = args[0];
if (any!isDirSeparator(name))
{
if (!isExecutable(name))
throw new ProcessException(text("Not an executable
file: ", name));
}
else
{
name = searchPathFor(name);
if (name is null)
throw new ProcessException(text("Executable file not
found: ", name));
}
Look at the "else" clause. If function searchPathFor failed, we
are throwing an error "Executable file not found: ", which is
supposed to include name of executable file. But name at this
moment is null... :-(
More information about the Digitalmars-d
mailing list