{"action":"created","issue":{"url":"https://api.github.com/repos/amoffat/sh/issues/269","labels_url":"https://api.github.com/repos/amoffat/sh/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/amoffat/sh/issues/269/comments","events_url":"https://api.github.com/repos/amoffat/sh/issues/269/events","html_url":"https://github.com/amoffat/sh/issues/269","id":102135462,"number":269,"title":"Setting default redirections for all commands","user":{"login":"Lucas-C","id":925560,"avatar_url":"https://avatars.githubusercontent.com/u/925560?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucas-C","html_url":"https://github.com/Lucas-C","followers_url":"https://api.github.com/users/Lucas-C/followers","following_url":"https://api.github.com/users/Lucas-C/following{/other_user}","gists_url":"https://api.github.com/users/Lucas-C/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucas-C/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucas-C/subscriptions","organizations_url":"https://api.github.com/users/Lucas-C/orgs","repos_url":"https://api.github.com/users/Lucas-C/repos","events_url":"https://api.github.com/users/Lucas-C/events{/privacy}","received_events_url":"https://api.github.com/users/Lucas-C/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-20T13:09:12Z","updated_at":"2015-09-03T20:30:46Z","closed_at":null,"body":"Hello,\r\n\r\nFirst, a big THANK YOU for your work on this project.\r\nI find it extremly useful, simple and pythonic.\r\nAnd it's going to be extremely useful to convince my coworkers to migrate their shell scripts to Python :)\r\n\r\nNow, would you be open to allowing some kind of global configuration, specifically on the default redirection for `stderr` ?\r\n\r\nCurrently, some \"hardcoded\" defaults are defined there:\r\nhttps://github.com/amoffat/sh/blob/master/sh.py#L669\r\nAnd by default the commands `stderr` is simply discarded.\r\n\r\nCould that default behaviour be somehow configurable ?\r\nI would like the commands `stderr` to be written to the parent Python script `stderr` by default.\r\nAnd in the same spirit, it could be sometimes handy to forward `stdout` the same way.\r\n\r\nI'd love to work on a pull request if you are ok with this feature request.\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/amoffat/sh/issues/comments/137565477","html_url":"https://github.com/amoffat/sh/issues/269#issuecomment-137565477","issue_url":"https://api.github.com/repos/amoffat/sh/issues/269","id":137565477,"user":{"login":"amoffat","id":259113,"avatar_url":"https://avatars.githubusercontent.com/u/259113?v=3","gravatar_id":"","url":"https://api.github.com/users/amoffat","html_url":"https://github.com/amoffat","followers_url":"https://api.github.com/users/amoffat/followers","following_url":"https://api.github.com/users/amoffat/following{/other_user}","gists_url":"https://api.github.com/users/amoffat/gists{/gist_id}","starred_url":"https://api.github.com/users/amoffat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoffat/subscriptions","organizations_url":"https://api.github.com/users/amoffat/orgs","repos_url":"https://api.github.com/users/amoffat/repos","events_url":"https://api.github.com/users/amoffat/events{/privacy}","received_events_url":"https://api.github.com/users/amoffat/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T20:30:46Z","updated_at":"2015-09-03T20:30:46Z","body":"Modules don't need to be backed by any physical file.  There are some cool you can do with the import system, for example, importing a module from over the network.  We will just need to dynamically create a module object and register it correctly with `sys.modules`.  I will give it a try"}}