{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/8160","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/8160/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/8160/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/8160/events","html_url":"https://github.com/nim-lang/Nim/issues/8160","id":337155196,"node_id":"MDU6SXNzdWUzMzcxNTUxOTY=","number":8160,"title":"execCmdEx: when poStdErrToStdOut not set, stderr disappears","user":{"login":"timotheecour","id":2194784,"node_id":"MDQ6VXNlcjIxOTQ3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2194784?v=4","gravatar_id":"","url":"https://api.github.com/users/timotheecour","html_url":"https://github.com/timotheecour","followers_url":"https://api.github.com/users/timotheecour/followers","following_url":"https://api.github.com/users/timotheecour/following{/other_user}","gists_url":"https://api.github.com/users/timotheecour/gists{/gist_id}","starred_url":"https://api.github.com/users/timotheecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotheecour/subscriptions","organizations_url":"https://api.github.com/users/timotheecour/orgs","repos_url":"https://api.github.com/users/timotheecour/repos","events_url":"https://api.github.com/users/timotheecour/events{/privacy}","received_events_url":"https://api.github.com/users/timotheecour/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-29T22:30:07Z","updated_at":"2018-06-29T22:30:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"```nim\r\nimport osproc\r\n\r\nproc test_execCmdEx*()=\r\n    var options: set[ProcessOption] = {}\r\n    options.incl poStdErrToStdOut\r\n    let output=execCmdEx(\"unexistant\", options)\r\n\r\n    echo output\r\n    #[ \r\n    with poStdErrToStdOut:\r\n    (output: \"/bin/sh: unexistant: command not found\\n\", exitCode: 127)\r\n    \r\n    without poStdErrToStdOut:\r\n    (output: \"\", exitCode: 127)\r\n    nothing printed to stderr\r\n    ]#\r\n\r\ntest_execCmdEx()\r\n\r\n```\r\n\r\nexpected behavior when `poStdErrToStdOut` is not set:\r\nit should not redirect stderr (ie, on a terminal, it would print out the stderr when running program on cmd line)\r\n"}}
{"actor":{"display_login":"timotheecour"}}