Is this a bug in execvp of std.process

Cheng Wei rivercheng at gmail.com
Tue Sep 20 21:30:11 PDT 2011


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

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

That is the first two bytes are lost

Adding two spaces works:
#import std.process
void main() {
    execvp("ip", "  route");
}

Version 2.055, linux, 32bit

Thanks.


More information about the Digitalmars-d-learn mailing list