{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/15246","labels_url":"https://api.github.com/repos/docker/docker/issues/15246/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/15246/comments","events_url":"https://api.github.com/repos/docker/docker/issues/15246/events","html_url":"https://github.com/docker/docker/issues/15246","id":98685329,"number":15246,"title":"bash: words: bad array subscript - Docker autocomplete script","user":{"login":"gauravgoyal","id":3414191,"avatar_url":"https://avatars.githubusercontent.com/u/3414191?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravgoyal","html_url":"https://github.com/gauravgoyal","followers_url":"https://api.github.com/users/gauravgoyal/followers","following_url":"https://api.github.com/users/gauravgoyal/following{/other_user}","gists_url":"https://api.github.com/users/gauravgoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravgoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravgoyal/subscriptions","organizations_url":"https://api.github.com/users/gauravgoyal/orgs","repos_url":"https://api.github.com/users/gauravgoyal/repos","events_url":"https://api.github.com/users/gauravgoyal/events{/privacy}","received_events_url":"https://api.github.com/users/gauravgoyal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/claimed","name":"status/claimed","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":37,"created_at":"2015-08-03T07:08:34Z","updated_at":"2015-08-18T20:27:40Z","closed_at":"2015-08-18T20:27:40Z","body":"`Description:` I am using docker autocomplete script for autocompletition. It gives me error when I press tab for command completition. I am using boot2docker for docker.\r\n\r\nError: bash: words: bad array subscript\r\n\r\n`docker version:`\r\n\r\n* Client version: 1.7.1\r\n* Client API version: 1.19\r\n* Go version (client): go1.4.2\r\n* Git commit (client): 786b29d\r\n* OS/Arch (client): darwin/amd64\r\n* Server version: 1.7.1\r\n* Server API version: 1.19\r\n* Go version (server): go1.4.2\r\n* Git commit (server): 786b29d\r\n* OS/Arch (server): linux/amd64\r\n\r\n`docker info`:\r\n\r\n```\r\nContainers: 1\r\nImages: 75\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 77\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nKernel Version: 4.0.7-boot2docker\r\nOperating System: Boot2Docker 1.7.1 (TCL 6.3); master : c202798 - Wed Jul 15 00:16:02 UTC 2015\r\nCPUs: 4\r\nTotal Memory: 1.955 GiB\r\nName: boot2docker\r\nID: ABC3:HCO6:6JGF:KXW7:SW7H:7YF5:55C6:EAMJ:TW4Y:UH6B:7XRJ:JDHB\r\nDebug mode (server): true\r\nFile Descriptors: 54\r\nGoroutines: 64\r\nSystem Time: 2015-08-03T07:17:54.067046299Z\r\nEventsListeners: 0\r\nInit SHA1: \r\nInit Path: /usr/local/bin/docker\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\nUsername: gauravgoyal\r\nRegistry: https://index.docker.io/v1/\r\n```\r\n`uname -n`:\r\n* Gauravs-MacBook-Air.local\r\n\r\n`Step to reproduce`:\r\n\r\n* Run docker <tab>\r\n* For e.g., docker bu <tab>\r\n\r\nError: bash: words: bad array subscript\r\n\r\nExpected result: docker build"}}