[Bash-completion-devel] Thanks for packaging bash-completion!
Trent W. Buck
trentbuck at gmail.com
Wed Feb 15 02:34:01 UTC 2012
Trent W. Buck wrote:
> David Paleino wrote:
> >> Unfortunately my current netbook is a funky ARM thing that is running
> >> ubuntu 11.10 until I find time to migrate it to wheezy. Is it
> >> feasible to just drop current wheezy bash-completion .deb into an old
> >> ubuntu install? I realize it's usually a stupid thing to try, but I
> >> suspect bash-completion is fairly isolated and unlikely to break
> >> anything. Ubuntu 11.10 ships with bash 4.2 and bash-completion 1:1.3.
> > I believe it's pretty safe to do -- yes. Oh well, if you run into
> > any problems, you can always downgrade bash-completion to the
> > version you have in the repositories :)
> FYI, it seems to work, although even with the new dynamic loading,
> it's still irritatingly slow to load. This is quite strange, thought
> I'd point it out:
> $ time bash -c '. /etc/bash_completion'
> /etc/bash_completion.d/gcc: line 50: [: too many arguments
> /etc/bash_completion.d/ifupdown: line 3: [: =: unary operator expected
> /etc/bash_completion.d/ifupdown: line 19: [: =: unary operator expected
> /etc/bash_completion.d/ipsec: line 3: [: =: unary operator expected
> /etc/bash_completion.d/kldload: line 3: [: =: unary operator expected
> /etc/bash_completion.d/man: line 3: [: too many arguments
> /etc/bash_completion.d/net-tools: line 71: [: =: unary operator expected
> /etc/bash_completion.d/pkg_install: line 3: [: =: unary operator expected
> /etc/bash_completion.d/procps: line 26: [: =: unary operator expected
> /etc/bash_completion.d/procps: line 41: [: =: unary operator expected
> /etc/bash_completion.d/wireless-tools: line 3: [: =: unary operator expected
> 1.01user 0.12system 0:01.15elapsed 97%CPU (0avgtext+0avgdata 13504maxresident)k
> 0inputs+0outputs (0major+2673minor)pagefaults 0swaps
Problem solved. dpkg got confused and kept all the conffiles from the
ubuntu version. dpkg -P bash_completion before installing the sid
version fixed it (both errors & sluggishness):
$ time bash -c '. /etc/bash_completion'
0.48user 0.02system 0:00.52elapsed 95%CPU (0avgtext+0avgdata 8800maxresident)k
0inputs+0outputs (0major+1867minor)pagefaults 0swaps
Apologies for the noise.
More information about the Bash-completion-devel