September 22, 2011
== Repost the article of Cheng Wei (rivercheng@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.

September 22, 2011
On Thursday, September 22, 2011 02:40:32 Cheng Wei wrote:
> == Repost the article of Cheng Wei (rivercheng@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.

Please do not post to this list. It's not intended for sending messages to. You sign up for it if you want to receive all of the messages from bugzilla. You're not going to get a useful response here.

- Jonathan M Davis