{"action":"created","issue":{"url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/70","repository_url":"https://api.github.com/repos/rcmdnk/homebrew-file","labels_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/70/comments","events_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/70/events","html_url":"https://github.com/rcmdnk/homebrew-file/pull/70","id":193952441,"number":70,"title":"Fix ZSH issues in brew-wrap - doesn't run brew-file","user":{"login":"derimagia","id":999489,"avatar_url":"https://avatars.githubusercontent.com/u/999489?v=3","gravatar_id":"","url":"https://api.github.com/users/derimagia","html_url":"https://github.com/derimagia","followers_url":"https://api.github.com/users/derimagia/followers","following_url":"https://api.github.com/users/derimagia/following{/other_user}","gists_url":"https://api.github.com/users/derimagia/gists{/gist_id}","starred_url":"https://api.github.com/users/derimagia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derimagia/subscriptions","organizations_url":"https://api.github.com/users/derimagia/orgs","repos_url":"https://api.github.com/users/derimagia/repos","events_url":"https://api.github.com/users/derimagia/events{/privacy}","received_events_url":"https://api.github.com/users/derimagia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-12-07T03:58:17Z","updated_at":"2016-12-18T05:32:34Z","closed_at":"2016-12-17T21:21:00Z","pull_request":{"url":"https://api.github.com/repos/rcmdnk/homebrew-file/pulls/70","html_url":"https://github.com/rcmdnk/homebrew-file/pull/70","diff_url":"https://github.com/rcmdnk/homebrew-file/pull/70.diff","patch_url":"https://github.com/rcmdnk/homebrew-file/pull/70.patch"},"body":"You looped through \"$@\" in the latest change which because of the fact that zsh doesn't split on spaces and bash does it causes issues and it never actually did a \"brew file init\" like it should have.\r\n\r\nUsed emulate with local options instead"},"comment":{"url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/comments/267804445","html_url":"https://github.com/rcmdnk/homebrew-file/pull/70#issuecomment-267804445","issue_url":"https://api.github.com/repos/rcmdnk/homebrew-file/issues/70","id":267804445,"user":{"login":"rcmdnk","id":1818935,"avatar_url":"https://avatars.githubusercontent.com/u/1818935?v=3","gravatar_id":"","url":"https://api.github.com/users/rcmdnk","html_url":"https://github.com/rcmdnk","followers_url":"https://api.github.com/users/rcmdnk/followers","following_url":"https://api.github.com/users/rcmdnk/following{/other_user}","gists_url":"https://api.github.com/users/rcmdnk/gists{/gist_id}","starred_url":"https://api.github.com/users/rcmdnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcmdnk/subscriptions","organizations_url":"https://api.github.com/users/rcmdnk/orgs","repos_url":"https://api.github.com/users/rcmdnk/repos","events_url":"https://api.github.com/users/rcmdnk/events{/privacy}","received_events_url":"https://api.github.com/users/rcmdnk/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T05:32:34Z","updated_at":"2016-12-18T05:32:34Z","body":"It reset setopt, but only in a function. Try:\r\n\r\n     setopt KSH_ARRAYS;f () {emulate -L zsh;};f;setopt\r\n\r\nThis is why we can use it safely in the function.\r\nOtherwise, we need to check setopt before changing it, and restore it as I did in the script."}}
{"actor":{"display_login":"rcmdnk"}}