{"action":"created","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/746","repository_url":"https://api.github.com/repos/koalaman/shellcheck","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/746/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/746/events","html_url":"https://github.com/koalaman/shellcheck/issues/746","id":182577315,"number":746,"title":"SC1009 Parser Error","user":{"login":"DonRichards","id":2738244,"avatar_url":"https://avatars.githubusercontent.com/u/2738244?v=3","gravatar_id":"","url":"https://api.github.com/users/DonRichards","html_url":"https://github.com/DonRichards","followers_url":"https://api.github.com/users/DonRichards/followers","following_url":"https://api.github.com/users/DonRichards/following{/other_user}","gists_url":"https://api.github.com/users/DonRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/DonRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonRichards/subscriptions","organizations_url":"https://api.github.com/users/DonRichards/orgs","repos_url":"https://api.github.com/users/DonRichards/repos","events_url":"https://api.github.com/users/DonRichards/events{/privacy}","received_events_url":"https://api.github.com/users/DonRichards/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-12T16:52:33Z","updated_at":"2016-10-12T16:59:24Z","closed_at":null,"body":"## How do I fix or bypass this error without doing it globally?\r\n\r\n* I'm running OSX (Shellcheck passes) commands line & IDE plugin\r\n* When it runs on Travis-CI / Ubuntu (Shellcheck fails)\r\n\r\ncustom.sh\r\n\r\n```bash\r\n#!/usr/bin/env bash\r\n# run all shell scripts in scripts/custom_scripts/\r\n\r\n# shellcheck source=/dev/null\r\nfor SCRIPT in /vagrant/scripts/custom_scripts/*.sh\r\ndo\r\n if [ -f \"$SCRIPT\" ]; then\r\n  echo \"Running custom scripts\"\r\n  # shellcheck source=/dev/null\r\n  source \"$SCRIPT\"\r\n fi\r\ndone\r\n```\r\n\r\n## Results\r\n\r\n```shell\r\n$ bash -c 'shopt -s globstar; shellcheck **/*.{sh,bash}'\r\nIn scripts/custom.sh line 4:\r\nfor SCRIPT in /vagrant/scripts/custom_scripts/*.sh\r\n^-- SC1009: The mentioned parser error was in this for loop.\r\nIn scripts/custom.sh line 6:\r\n # shellcheck source=/dev/null\r\n ^-- SC1073: Couldn't parse this shellcheck annotation.\r\n              ^-- SC1072: Unexpected \"s\". Fix any mentioned problems and try again.\r\n**/*.bash: openFile: does not exist (No such file or directory)\r\nThe command \"bash -c 'shopt -s globstar; shellcheck **/*.{sh,bash}'\" exited with 2.\r\n```"},"comment":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/comments/253273252","html_url":"https://github.com/koalaman/shellcheck/issues/746#issuecomment-253273252","issue_url":"https://api.github.com/repos/koalaman/shellcheck/issues/746","id":253273252,"user":{"login":"koalaman","id":2818758,"avatar_url":"https://avatars.githubusercontent.com/u/2818758?v=3","gravatar_id":"","url":"https://api.github.com/users/koalaman","html_url":"https://github.com/koalaman","followers_url":"https://api.github.com/users/koalaman/followers","following_url":"https://api.github.com/users/koalaman/following{/other_user}","gists_url":"https://api.github.com/users/koalaman/gists{/gist_id}","starred_url":"https://api.github.com/users/koalaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koalaman/subscriptions","organizations_url":"https://api.github.com/users/koalaman/orgs","repos_url":"https://api.github.com/users/koalaman/repos","events_url":"https://api.github.com/users/koalaman/events{/privacy}","received_events_url":"https://api.github.com/users/koalaman/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T16:59:24Z","updated_at":"2016-10-12T16:59:24Z","body":"Which versions are you using on the two platforms?"}}
{"actor":{"display_login":"koalaman"}}