{"action":"opened","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/745","repository_url":"https://api.github.com/repos/koalaman/shellcheck","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/745/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/745/events","html_url":"https://github.com/koalaman/shellcheck/issues/745","id":182093061,"number":745,"title":"`sort -o` should not trigger SC2094","user":{"login":"benhartley","id":1275053,"avatar_url":"https://avatars.githubusercontent.com/u/1275053?v=3","gravatar_id":"","url":"https://api.github.com/users/benhartley","html_url":"https://github.com/benhartley","followers_url":"https://api.github.com/users/benhartley/followers","following_url":"https://api.github.com/users/benhartley/following{/other_user}","gists_url":"https://api.github.com/users/benhartley/gists{/gist_id}","starred_url":"https://api.github.com/users/benhartley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhartley/subscriptions","organizations_url":"https://api.github.com/users/benhartley/orgs","repos_url":"https://api.github.com/users/benhartley/repos","events_url":"https://api.github.com/users/benhartley/events{/privacy}","received_events_url":"https://api.github.com/users/benhartley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-10T19:16:14Z","updated_at":"2016-10-10T19:16:14Z","closed_at":null,"body":"This command:\r\n\r\n``` sh\r\nsort -o x < x\r\n```\r\n\r\nthrows this error:\r\n\r\n```\r\nMake sure not to read and write the same file in the same pipeline. [SC2094]\r\n```\r\n\r\nThis is incorrect since `-o` enables you to [use the same file](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sort.html):\r\n\r\n```\r\n-o  output\r\n    Specify the name of an output file to be used instead of the standard \r\n    output. This file can be the same as one of the input files.\r\n```\r\n"}}
{"actor":{"display_login":"benhartley"}}