{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/391eb183c3474a15bf9ad0e87d3ff118?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"391eb183c3474a15bf9ad0e87d3ff118","url":"https://api.github.com/users/ghthor","login":"ghthor","id":160298},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-02T14:49:15Z","comments":4,"closed_at":null,"url":"https://api.github.com/repos/ndbroadbent/scm_breeze/issues/11","body":"I get this when I attempt to use \\<tab\\> for completion.\r\n\r\n```\r\n$ gba\r\n* master\r\n  remotes/ndbroadbent/master\r\n  remotes/origin/HEAD -> origin/master\r\n  remotes/origin/master\r\n$ gf nd\r\n```\r\nIf I stroke a \\<tab\\> to complete nd => ndbroadbent I get this output and it moves my cursor to the next line.\r\n\r\n```\r\n$ gf nd-bash: [: 2: unary operator expected\r\n```\r\nIf I then press \\<tab\\> again\r\n\r\n```\r\n$ gf nd-bash: [: 2: unary operator expected\r\n-bash: [: 2: unary operator expected\r\n\r\nndbroadbent   origin\r\n$ gf nd\r\n```\r\n\r\n```\r\n$ uname -a\r\nDarwin ****** 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 i386\r\n$ bash --version\r\nGNU bash, version 4.2.10(2)-release (i386-apple-darwin11.2.0)\r\n```\r\n\r\nI don't notice this problem on ubuntu 10.04\r\n\r\n```\r\n$ uname -a\r\nLinux ****** 2.6.35.4-****** #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64 GNU/Linux\r\n$ bash --version\r\nGNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)\r\n```","html_url":"https://github.com/ndbroadbent/scm_breeze/issues/11","number":11,"title":"-bash: [: 2: unary operator expected - OSX 10.7","id":2077911,"created_at":"2011-10-28T12:01:28Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/4931eceec58528529fd004e56af197c4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"4931eceec58528529fd004e56af197c4","url":"https://api.github.com/users/ndbroadbent","login":"ndbroadbent","id":139536},"updated_at":"2011-11-02T14:49:15Z","url":"https://api.github.com/repos/ndbroadbent/scm_breeze/issues/comments/2604243","body":"Hmm. Can you please try a plain `git fetch nd<tab>`?\r\n\r\nIf that works, can try set up tab completion manually and see if you still get the error? \r\n\r\ne.g.\r\n\r\n```bash\r\nalias test_alias='git fetch'\r\ncomplete -o default -o nospace -F _git_fetch  test_alias\r\n# Test\r\ntest_alias nd<tab>\r\n```\r\n\r\nThanks","id":2604243,"created_at":"2011-11-02T14:49:15Z"}}