{"action":"opened","issue":{"url":"https://api.github.com/repos/eaburns/T/issues/129","labels_url":"https://api.github.com/repos/eaburns/T/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/eaburns/T/issues/129/comments","events_url":"https://api.github.com/repos/eaburns/T/issues/129/events","html_url":"https://github.com/eaburns/T/issues/129","id":126930059,"number":129,"title":"Pipe commands assume that they can pass the -c flag to the shell.","user":{"login":"eaburns","id":235271,"avatar_url":"https://avatars.githubusercontent.com/u/235271?v=3","gravatar_id":"","url":"https://api.github.com/users/eaburns","html_url":"https://github.com/eaburns","followers_url":"https://api.github.com/users/eaburns/followers","following_url":"https://api.github.com/users/eaburns/following{/other_user}","gists_url":"https://api.github.com/users/eaburns/gists{/gist_id}","starred_url":"https://api.github.com/users/eaburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaburns/subscriptions","organizations_url":"https://api.github.com/users/eaburns/orgs","repos_url":"https://api.github.com/users/eaburns/repos","events_url":"https://api.github.com/users/eaburns/events{/privacy}","received_events_url":"https://api.github.com/users/eaburns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-15T18:31:17Z","updated_at":"2016-01-15T18:31:17Z","closed_at":null,"body":"On Windows, the shell is PowerShell.exe, and its flag is -Command. We can probably create shell_$(GOOS).go files to define DefaultShell and CommandFlag. On Unix DefaultShell=\"/bin/sh\" and CommandFlag=\"-c\". On Windows DefaultShell=\"PowerShell.exe\" and CommandFlag=\"-Command\"."}}