{"action":"created","issue":{"url":"https://api.github.com/repos/niieani/bash-oo-framework/issues/16","repository_url":"https://api.github.com/repos/niieani/bash-oo-framework","labels_url":"https://api.github.com/repos/niieani/bash-oo-framework/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/niieani/bash-oo-framework/issues/16/comments","events_url":"https://api.github.com/repos/niieani/bash-oo-framework/issues/16/events","html_url":"https://github.com/niieani/bash-oo-framework/issues/16","id":133655920,"number":16,"title":"declare: -g: invalid option","user":{"login":"schabluk","id":2128357,"avatar_url":"https://avatars.githubusercontent.com/u/2128357?v=3","gravatar_id":"","url":"https://api.github.com/users/schabluk","html_url":"https://github.com/schabluk","followers_url":"https://api.github.com/users/schabluk/followers","following_url":"https://api.github.com/users/schabluk/following{/other_user}","gists_url":"https://api.github.com/users/schabluk/gists{/gist_id}","starred_url":"https://api.github.com/users/schabluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schabluk/subscriptions","organizations_url":"https://api.github.com/users/schabluk/orgs","repos_url":"https://api.github.com/users/schabluk/repos","events_url":"https://api.github.com/users/schabluk/events{/privacy}","received_events_url":"https://api.github.com/users/schabluk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T08:50:43Z","updated_at":"2016-02-15T09:19:58Z","closed_at":null,"body":"Have this error when running your-script.sh on Solaris.\r\n\r\n$ uname -a\r\nSunOS localhost 5.11 11.2 sun4v sparc sun4v\r\n$ bash --version\r\nGNU bash, version 4.1.17(1)-release (sparc-sun-solaris2.11)\r\n$ ./your-script.sh\r\n/pkg/my/tools/bash-oo/lib/oo-bootstrap.sh: line 44: declare: -g: invalid option\r\ndeclare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\r\n/pkg/my/tools/bash-oo/lib/oo-bootstrap.sh: line 45: declare: -g: invalid option\r\ndeclare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\r\n/pkg/my/tools/bash-oo/lib/oo-bootstrap.sh: line 176: declare: -g: invalid option\r\ndeclare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\r\n/pkg/my/tools/bash-oo/lib/oo-bootstrap.sh: line 177: declare: -g: invalid option\r\ndeclare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\r\n/pkg/my/tools/bash-oo/lib/oo-bootstrap.sh: line 178: declare: -g: invalid option\r\ndeclare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\r\n/pkg/my/tools/bash-oo/lib/oo-bootstrap.sh: line 190: declare: -g: invalid option\r\ndeclare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\r\n"},"comment":{"url":"https://api.github.com/repos/niieani/bash-oo-framework/issues/comments/184128295","html_url":"https://github.com/niieani/bash-oo-framework/issues/16#issuecomment-184128295","issue_url":"https://api.github.com/repos/niieani/bash-oo-framework/issues/16","id":184128295,"user":{"login":"niieani","id":563469,"avatar_url":"https://avatars.githubusercontent.com/u/563469?v=3","gravatar_id":"","url":"https://api.github.com/users/niieani","html_url":"https://github.com/niieani","followers_url":"https://api.github.com/users/niieani/followers","following_url":"https://api.github.com/users/niieani/following{/other_user}","gists_url":"https://api.github.com/users/niieani/gists{/gist_id}","starred_url":"https://api.github.com/users/niieani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niieani/subscriptions","organizations_url":"https://api.github.com/users/niieani/orgs","repos_url":"https://api.github.com/users/niieani/repos","events_url":"https://api.github.com/users/niieani/events{/privacy}","received_events_url":"https://api.github.com/users/niieani/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T09:19:58Z","updated_at":"2016-02-15T09:19:58Z","body":"Hm, seems your version of bash doesn't have global variables (-g). If\npossible, try bash>=4.2.\nI'll try to figure out a workaround.\nOn Mon, 15 Feb 2016 at 09:50, Łukasz Schabek <notifications@github.com>\nwrote:\n\n> Have this error when running your-script.sh on Solaris.\n>\n> $ uname -a\n> SunOS deuxviqm 5.11 11.2 sun4v sparc sun4v\n> $ bash --version\n> GNU bash, version 4.1.17(1)-release (sparc-sun-solaris2.11)\n> $ ./your-script.sh\n> /pkg/vdcro/tools/bash-oo/lib/oo-bootstrap.sh: line 44: declare: -g:\n> invalid option\n> declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\n> /pkg/vdcro/tools/bash-oo/lib/oo-bootstrap.sh: line 45: declare: -g:\n> invalid option\n> declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\n> /pkg/vdcro/tools/bash-oo/lib/oo-bootstrap.sh: line 176: declare: -g:\n> invalid option\n> declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\n> /pkg/vdcro/tools/bash-oo/lib/oo-bootstrap.sh: line 177: declare: -g:\n> invalid option\n> declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\n> /pkg/vdcro/tools/bash-oo/lib/oo-bootstrap.sh: line 178: declare: -g:\n> invalid option\n> declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\n> /pkg/vdcro/tools/bash-oo/lib/oo-bootstrap.sh: line 190: declare: -g:\n> invalid option\n> declare: usage: declare [-aAfFilrtux] [-p] [name[=value] ...]\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/niieani/bash-oo-framework/issues/16>.\n>\n"}}