{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/43328352","id":43328352,"diff_hunk":"@@ -2,22 +2,76 @@\n \n abstract AbstractCmd\n \n+# libuv process option flags\n+const UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS = UInt8(1 << 2)\n+const UV_PROCESS_DETACHED = UInt8(1 << 3)\n+const UV_PROCESS_WINDOWS_HIDE = UInt8(1 << 4)\n+\n immutable Cmd <: AbstractCmd\n     exec::Vector{ByteString}\n     ignorestatus::Bool\n-    detach::Bool\n+    flags::UInt8 # libuv process flags","path":"base/process.jl","position":13,"original_position":13,"commit_id":"18066900a3be0015332edfb712ae5051c1dc1d7e","original_commit_id":"18066900a3be0015332edfb712ae5051c1dc1d7e","user":{"login":"tkelman","id":5934628,"avatar_url":"https://avatars.githubusercontent.com/u/5934628?v=3","gravatar_id":"","url":"https://api.github.com/users/tkelman","html_url":"https://github.com/tkelman","followers_url":"https://api.github.com/users/tkelman/followers","following_url":"https://api.github.com/users/tkelman/following{/other_user}","gists_url":"https://api.github.com/users/tkelman/gists{/gist_id}","starred_url":"https://api.github.com/users/tkelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkelman/subscriptions","organizations_url":"https://api.github.com/users/tkelman/orgs","repos_url":"https://api.github.com/users/tkelman/repos","events_url":"https://api.github.com/users/tkelman/events{/privacy}","received_events_url":"https://api.github.com/users/tkelman/received_events","type":"User","site_admin":false},"body":"today. will there always be < 8 bits of flags? not very future proof to pick the smallest possible number","created_at":"2015-10-28T22:41:16Z","updated_at":"2015-10-28T22:41:16Z","html_url":"https://github.com/JuliaLang/julia/pull/13780#discussion_r43328352","pull_request_url":"https://api.github.com/repos/JuliaLang/julia/pulls/13780","_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/43328352"},"html":{"href":"https://github.com/JuliaLang/julia/pull/13780#discussion_r43328352"},"pull_request":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13780"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/13780","id":48798682,"html_url":"https://github.com/JuliaLang/julia/pull/13780","diff_url":"https://github.com/JuliaLang/julia/pull/13780.diff","patch_url":"https://github.com/JuliaLang/julia/pull/13780.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/13780","number":13780,"state":"open","locked":false,"title":"expose libuv windows verbatim and hidden process spawning","user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"body":"This fixes #13776 by exporting a `windows_verbatim` option to `Cmd(cmd; keywords...)` to enable verbatim arguments when spawning windows commands, for processes that don't parse embedded quotes.\r\n\r\nI also noticed another potentially useful libuv process flag on windows, which I exported as a `windows_hide` flag in `Cmd`.  This allows you to spawn Windows processes without popping up a console window, which is obviously useful for GUI programs etc.","created_at":"2015-10-26T21:18:43Z","updated_at":"2015-10-28T22:41:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bb7893fe783db228b0089b6add95fa7c3749378","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/13780/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/13780/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/13780/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/18066900a3be0015332edfb712ae5051c1dc1d7e","head":{"label":"stevengj:windows_cmd_flags","ref":"windows_cmd_flags","sha":"18066900a3be0015332edfb712ae5051c1dc1d7e","user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"repo":{"id":7264997,"name":"julia","full_name":"stevengj/julia","owner":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevengj/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":true,"url":"https://api.github.com/repos/stevengj/julia","forks_url":"https://api.github.com/repos/stevengj/julia/forks","keys_url":"https://api.github.com/repos/stevengj/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevengj/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevengj/julia/teams","hooks_url":"https://api.github.com/repos/stevengj/julia/hooks","issue_events_url":"https://api.github.com/repos/stevengj/julia/issues/events{/number}","events_url":"https://api.github.com/repos/stevengj/julia/events","assignees_url":"https://api.github.com/repos/stevengj/julia/assignees{/user}","branches_url":"https://api.github.com/repos/stevengj/julia/branches{/branch}","tags_url":"https://api.github.com/repos/stevengj/julia/tags","blobs_url":"https://api.github.com/repos/stevengj/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevengj/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevengj/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevengj/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevengj/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/stevengj/julia/languages","stargazers_url":"https://api.github.com/repos/stevengj/julia/stargazers","contributors_url":"https://api.github.com/repos/stevengj/julia/contributors","subscribers_url":"https://api.github.com/repos/stevengj/julia/subscribers","subscription_url":"https://api.github.com/repos/stevengj/julia/subscription","commits_url":"https://api.github.com/repos/stevengj/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevengj/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevengj/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevengj/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevengj/julia/contents/{+path}","compare_url":"https://api.github.com/repos/stevengj/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevengj/julia/merges","archive_url":"https://api.github.com/repos/stevengj/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevengj/julia/downloads","issues_url":"https://api.github.com/repos/stevengj/julia/issues{/number}","pulls_url":"https://api.github.com/repos/stevengj/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/stevengj/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/stevengj/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevengj/julia/labels{/name}","releases_url":"https://api.github.com/repos/stevengj/julia/releases{/id}","created_at":"2012-12-20T21:59:35Z","updated_at":"2014-06-25T02:32:49Z","pushed_at":"2015-10-28T18:21:08Z","git_url":"git://github.com/stevengj/julia.git","ssh_url":"git@github.com:stevengj/julia.git","clone_url":"https://github.com/stevengj/julia.git","svn_url":"https://github.com/stevengj/julia","homepage":"http://julialang.org/","size":83431,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaLang:master","ref":"master","sha":"344fdc2e379e0a33b35291d2970d159f180dbea4","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-10-28T21:30:41Z","pushed_at":"2015-10-28T22:33:50Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":239479,"stargazers_count":6196,"watchers_count":6196,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1371,"mirror_url":null,"open_issues_count":1460,"forks":1371,"open_issues":1460,"watchers":6196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13780"},"html":{"href":"https://github.com/JuliaLang/julia/pull/13780"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/13780"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/13780/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13780/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/13780/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/18066900a3be0015332edfb712ae5051c1dc1d7e"}}}}