{"action":"closed","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/440","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/440/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/440/events","html_url":"https://github.com/koalaman/shellcheck/issues/440","id":100742141,"number":440,"title":"disabling SC2129 check should disable all connected lines","user":{"login":"mika","id":115592,"avatar_url":"https://avatars.githubusercontent.com/u/115592?v=3","gravatar_id":"","url":"https://api.github.com/users/mika","html_url":"https://github.com/mika","followers_url":"https://api.github.com/users/mika/followers","following_url":"https://api.github.com/users/mika/following{/other_user}","gists_url":"https://api.github.com/users/mika/gists{/gist_id}","starred_url":"https://api.github.com/users/mika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mika/subscriptions","organizations_url":"https://api.github.com/users/mika/orgs","repos_url":"https://api.github.com/users/mika/repos","events_url":"https://api.github.com/users/mika/events{/privacy}","received_events_url":"https://api.github.com/users/mika/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-13T11:11:53Z","updated_at":"2015-08-15T21:24:46Z","closed_at":"2015-08-15T21:24:45Z","body":"Given a file `foo` containing:\r\n\r\n````\r\nreprepro removematched bar '*foo' 2>>errors.txt                   \r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\n````\r\n\r\nshellcheck complains regarding SC2129:\r\n\r\n````\r\nIn foo line 1:\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\n^-- SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects.\r\n````\r\n\r\nWhen disabling the SC2129 check via:\r\n\r\n````\r\n# shellcheck disable=SC2129\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\n````\r\n\r\nit complains about the next line(s) though:\r\n\r\n````\r\nIn foo line 3:\r\nreprepro removematched bar '*foo' 2>>errors.txt\r\n^-- SC2129: Consider using { cmd1; cmd2; } >> file instead of individual redirects.\r\n````\r\n\r\nIt would be nice if `# shellcheck disable=SC2129` could disable those checks for all connected lines, so you don't have to add it before every single line.\r\n\r\nThanks for shellcheck! :+1: "}}