Bash tab completion for _git_fetch alias is broken on Git 1.7.7.1
- From
Nathan Broadbent <nathan.f77@gmail.com>
- Date
- Nov 10, 2011, 02:46 UTC
- Message-ID
- <CAPXHQbND61TyU21ckHwRyMYH=P=H7+GZR5KNY8m+qaMEEhEZKQ@mail.gmail.com>
- In-Reply-To
- <CAPXHQbPgepSFHX63F+Nt8TJ+znAaVqzzmSZmJqxj2mekhStO-g@mail.gmail.com>
Dear git mailing list,
I'm assigning the `_git_fetch` bash tab completion to the alias `gf`, with the following command:
complete -o default -o nospace -F _git_fetch gf
The tab completion then works fine in git 1.7.0.4, but breaks on git 1.7.7.1, with the following error:
-bash: [: 2: unary operator expected
Here is the related issue on github (the project is a set of git shortcuts): https://github.com/ndbroadbent/scm_breeze/issues/11
Thanks for your time, I'd really appreciate some help!
Regards, Nathan B