Is this a bug in execvp of std.process

Cheng Wei rivercheng at gmail.com
Wed Sep 21 19:40:32 PDT 2011


== Repost the article of Cheng Wei (rivercheng at gmail.com)
== Posted at 2011/09/21 00:30 to digitalmars.D.learn

#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-bugs mailing list