{"action":"closed","issue":{"url":"https://api.github.com/repos/klemens-morgenstern/boost-process/issues/123","repository_url":"https://api.github.com/repos/klemens-morgenstern/boost-process","labels_url":"https://api.github.com/repos/klemens-morgenstern/boost-process/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/klemens-morgenstern/boost-process/issues/123/comments","events_url":"https://api.github.com/repos/klemens-morgenstern/boost-process/issues/123/events","html_url":"https://github.com/klemens-morgenstern/boost-process/issues/123","id":264367178,"number":123,"title":"Should be arguments quoting optional?","user":{"login":"RolandTaverner","id":309307,"avatar_url":"https://avatars2.githubusercontent.com/u/309307?v=4","gravatar_id":"","url":"https://api.github.com/users/RolandTaverner","html_url":"https://github.com/RolandTaverner","followers_url":"https://api.github.com/users/RolandTaverner/followers","following_url":"https://api.github.com/users/RolandTaverner/following{/other_user}","gists_url":"https://api.github.com/users/RolandTaverner/gists{/gist_id}","starred_url":"https://api.github.com/users/RolandTaverner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RolandTaverner/subscriptions","organizations_url":"https://api.github.com/users/RolandTaverner/orgs","repos_url":"https://api.github.com/users/RolandTaverner/repos","events_url":"https://api.github.com/users/RolandTaverner/events{/privacy}","received_events_url":"https://api.github.com/users/RolandTaverner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-10T20:35:14Z","updated_at":"2017-10-13T10:44:57Z","closed_at":"2017-10-13T10:44:57Z","author_association":"NONE","body":"Hi!\r\nI have an issue with automatic arguments quoting. Here is the situation.\r\n```\r\nvoid generateArgs(std::vector<std::string> &args)\r\n{\r\n // this happens in a galaxy far, far away so I don't know what really can be here\r\n  args.push_back(\"-f /path/to/file\");\r\n  args.push_back(\"--PID 42\");\r\n  args.push_back(\"--some_option\");\r\n}\r\n\r\nvoid run()\r\n{\r\n  std::vector<std::string> args;\r\n  generateArgs(args);\r\n  bp::child child(bp::exe = \"program.exe\", bp::args = args);\r\n// Oops we got \r\n// program.exe \"-f /path/to/file\" \"--PID 42\" --some_option\r\n// instead of\r\n// program.exe -f /path/to/file --PID 42 --some_option\r\n}\r\n```\r\nI think it would be nice to have an option to disable automatic quoting."}}
{"actor":{"display_login":"RolandTaverner"}}