{"action":"opened","issue":{"url":"https://api.github.com/repos/BorisSchaeling/boost-process/issues/18","repository_url":"https://api.github.com/repos/BorisSchaeling/boost-process","labels_url":"https://api.github.com/repos/BorisSchaeling/boost-process/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/BorisSchaeling/boost-process/issues/18/comments","events_url":"https://api.github.com/repos/BorisSchaeling/boost-process/issues/18/events","html_url":"https://github.com/BorisSchaeling/boost-process/issues/18","id":157524909,"number":18,"title":"Confusing docs for set_args","user":{"login":"alamaison","id":596743,"avatar_url":"https://avatars.githubusercontent.com/u/596743?v=3","gravatar_id":"","url":"https://api.github.com/users/alamaison","html_url":"https://github.com/alamaison","followers_url":"https://api.github.com/users/alamaison/followers","following_url":"https://api.github.com/users/alamaison/following{/other_user}","gists_url":"https://api.github.com/users/alamaison/gists{/gist_id}","starred_url":"https://api.github.com/users/alamaison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alamaison/subscriptions","organizations_url":"https://api.github.com/users/alamaison/orgs","repos_url":"https://api.github.com/users/alamaison/repos","events_url":"https://api.github.com/users/alamaison/events{/privacy}","received_events_url":"https://api.github.com/users/alamaison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-30T15:41:56Z","updated_at":"2016-05-30T15:41:56Z","closed_at":null,"body":"The [docs for `set_args`](http://www.highscore.de/boost/process0.5/boost/process/initializers/set_args.html) say 'The first argument specifies the executable to start unless run_exe is used'.  It's not clear from this if the first argument you pass is argv[0] or argv[1] when also using run_exe.\r\n\r\nIt turns out on Windows that the first argument in argv[0], rather than what you passed to run_exe.  It looks like this is different from the POSIX behaviour:\r\n```cpp\r\n    explicit run_exe_(const std::string &s) : s_(s), cmd_line_(new char*[2])\r\n    {\r\n        cmd_line_[0] = const_cast<char*>(s_.c_str());\r\n        cmd_line_[1] = 0;\r\n    }\r\n```"}}
{"actor":{"display_login":"alamaison"}}