Is it a bug in execvb (std.process)?

Cheng Wei rivercheng at gmail.com
Tue Sep 20 21:34:10 PDT 2011


import std.process;
void main() {
    execvp("ip", ["route"]);
}

result:
Object "ute" is unknown, try "ip help".

So the first two bytes are lost.
After adding two spaces in the first argument, it works.
import std.process;
void main() {
    execvp("ip", ["  route"]);
}

dmd 2.055 linux 32bit.
Is this a bug? Can I issue it? Thanks a lot.


More information about the Digitalmars-d-learn mailing list