{"action":"opened","issue":{"url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/42","repository_url":"https://api.github.com/repos/lhcb/analysis-essentials","labels_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/42/comments","events_url":"https://api.github.com/repos/lhcb/analysis-essentials/issues/42/events","html_url":"https://github.com/lhcb/analysis-essentials/issues/42","id":269918515,"number":42,"title":"Use bash options to make scripts more robust ","user":{"login":"chrisburr","id":5220533,"avatar_url":"https://avatars3.githubusercontent.com/u/5220533?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisburr","html_url":"https://github.com/chrisburr","followers_url":"https://api.github.com/users/chrisburr/followers","following_url":"https://api.github.com/users/chrisburr/following{/other_user}","gists_url":"https://api.github.com/users/chrisburr/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisburr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisburr/subscriptions","organizations_url":"https://api.github.com/users/chrisburr/orgs","repos_url":"https://api.github.com/users/chrisburr/repos","events_url":"https://api.github.com/users/chrisburr/events{/privacy}","received_events_url":"https://api.github.com/users/chrisburr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-31T11:06:35Z","updated_at":"2017-10-31T11:06:35Z","closed_at":null,"author_association":"OWNER","body":"The bash lesson should recommend using some options at the top of scripts to make them easier to debug. My personal preference is to start scripts with\r\n\r\n```bash\r\n#!/bin/bash\r\nset -euo pipefail\r\nIFS=$'\\n\\t'\r\n```\r\n\r\nfor the reasons listed [here](http://redsymbol.net/articles/unofficial-bash-strict-mode/)."}}
{"actor":{"display_login":"chrisburr"}}