September 22, 2011 Is this a bug in execvp of std.process | ||||
---|---|---|---|---|
| ||||
== 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 Re: Is this a bug in execvp of std.process | ||||
---|---|---|---|---|
| ||||
Posted in reply to Cheng Wei | 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
|
Copyright © 1999-2021 by the D Language Foundation