digitalmars.D.learn - Is it a bug in execvb (std.process)?
- Cheng Wei (14/14) Sep 20 2011 import std.process;
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.
Sep 20 2011








Cheng Wei <rivercheng gmail.com>