Comment 5 for bug 588811

Revision history for this message
David Paleino (dpaleino) wrote : Re: [Bug 588811] Re: [Maverick A1]bash errors in /etc/bash_completion.d/apt displayed when opening a terminal

On Wed, 02 Jun 2010 19:04:09 -0000, Jeff Lane wrote:

> This is the maverick default shell in Studio...

Please don't assume everyone out there is using Ubuntu :)
I'm a Debian developer, and this is the upstream bash-completion project (well,
not really, upstream is alioth, but I'm keeping it open here as well just for
convenience)

> and yes, it's /bin/bash...

Ok, thanks.

> also, .bashrc contains code that should prevent this from happening:
>
> if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
> . /etc/bash_completion
> fi
>
> Running shopt by itself returns a 1.

What does "shopt -o posix" return?

> [..]
> also, all the compat* options are set to off if I just run shopt
> alone...

Those are bash compatibility levels, irrelevant for posix and bash-completion,
I'd say ;)

David

--
 . ''`. Debian developer | http://wiki.debian.org/DavidPaleino
 : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
   `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174