{"action":"created","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/563","repository_url":"https://api.github.com/repos/koalaman/shellcheck","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/563/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/563/events","html_url":"https://github.com/koalaman/shellcheck/issues/563","id":122565879,"number":563,"title":"Fails to detect assignment post here doc start marker.","user":{"login":"deryni","id":302055,"avatar_url":"https://avatars.githubusercontent.com/u/302055?v=3","gravatar_id":"","url":"https://api.github.com/users/deryni","html_url":"https://github.com/deryni","followers_url":"https://api.github.com/users/deryni/followers","following_url":"https://api.github.com/users/deryni/following{/other_user}","gists_url":"https://api.github.com/users/deryni/gists{/gist_id}","starred_url":"https://api.github.com/users/deryni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deryni/subscriptions","organizations_url":"https://api.github.com/users/deryni/orgs","repos_url":"https://api.github.com/users/deryni/repos","events_url":"https://api.github.com/users/deryni/events{/privacy}","received_events_url":"https://api.github.com/users/deryni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-16T17:53:21Z","updated_at":"2016-02-08T09:01:20Z","closed_at":null,"body":"This is probably related to #108 (and I feel like there was another heredoc related issue that I saw somewhat recently but couldn't find it now) but this snippet\r\n\r\n    #!/bin/sh\r\n    false <<EOF || { ret=$?; exit $ret; }\r\n    EOF\r\n    exit $ret\r\n\r\nReports [SC2154](https://github.com/koalaman/shellcheck/wiki/SC2154) on the usage of `$ret` in the `exit` command on line 2 but does *not* report it on line 4.\r\n\r\nProbably relatedly, shellcheck does *not* report [SC2086](https://github.com/koalaman/shellcheck/wiki/SC2086) on line 2 but *does* report it on line 4."},"comment":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/comments/181260712","html_url":"https://github.com/koalaman/shellcheck/issues/563#issuecomment-181260712","issue_url":"https://api.github.com/repos/koalaman/shellcheck/issues/563","id":181260712,"user":{"login":"knirch","id":1693206,"avatar_url":"https://avatars.githubusercontent.com/u/1693206?v=3","gravatar_id":"","url":"https://api.github.com/users/knirch","html_url":"https://github.com/knirch","followers_url":"https://api.github.com/users/knirch/followers","following_url":"https://api.github.com/users/knirch/following{/other_user}","gists_url":"https://api.github.com/users/knirch/gists{/gist_id}","starred_url":"https://api.github.com/users/knirch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knirch/subscriptions","organizations_url":"https://api.github.com/users/knirch/orgs","repos_url":"https://api.github.com/users/knirch/repos","events_url":"https://api.github.com/users/knirch/events{/privacy}","received_events_url":"https://api.github.com/users/knirch/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T09:01:20Z","updated_at":"2016-02-08T09:01:20Z","body":"Probably same issue, but a more common pattern;\r\n\r\n```bash\r\nfile=\"foo bar\"\r\ncat <<EOF >> $file\r\nfoobar\r\nEOF\r\n```"}}