[Bug 1210737] Re: easygit (aka eg) fails with "unary operator expected"
Peter Cordes
peter at cordes.ca
Mon Dec 1 02:56:26 UTC 2014
I don't have eg installed, but I got the completions from the .deb, and
sourced them in a shell.
Works for me on Trusty; I don't see those error messages. I am using
git from the ppa, though: 2:2.1.3-1avh1~trusty1 not Trusty's 1:1.9.1-1.
(eg uses git's completion functions, and /usr/share/bash-
completion/completions/git is provided by git).
Are you doing this in a directory with any funny names in it? maybe
files with a * in their name?
Another thing that can cause problems is old cruft hanging around in
/etc/bash_completion.d, overriding the good versions of functions
supplied by new stuff.
Anyway, eg provides /etc/bash_completion.d/eg, so this is eg's bug, or
a bug in interaction between it and whatever version of git completion
you have installed. git's completion file is actually really massive,
and has modified and renamed versions of some of the building block
functions that that bash-completion ships.
Please confirm this still happens on a Trusty or later system.
** Package changed: bash-completion (Ubuntu) => easygit (Ubuntu)
** Changed in: easygit (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1210737
Title:
easygit (aka eg) fails with "unary operator expected"
Status in easygit package in Ubuntu:
Incomplete
Bug description:
Writing:
"$ eg rm "
then pressing tab will result in:
"$ eg rm bash: [: 1: unary operator expected"
Completion fails with other easygit subcommands as well.
$ lsb_release -rd
Description: Ubuntu 13.04
Release: 13.04
$ apt-cache policy bash-completion
bash-completion:
Installed: 1:2.0-1ubuntu3
Candidate: 1:2.0-1ubuntu3
Version table:
*** 1:2.0-1ubuntu3 0
500 http://mirror.isoc.org.il/pub/ubuntu/ raring/main i386 Packages
100 /var/lib/dpkg/status
$ apt-cache policy easygit
easygit:
Installed: 0.99-1
Candidate: 0.99-1
Version table:
*** 0.99-1 0
500 http://mirror.isoc.org.il/pub/ubuntu/ raring/universe i386 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/easygit/+bug/1210737/+subscriptions
More information about the foundations-bugs
mailing list