[maverick] Syntax error in bash-completion.d/apt prints ugly messages at every login

Bug #587910 reported by Thierry Carrez
This bug report is a duplicate of:  Bug #546794: Smarter lib* aware autocompletion?. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bash-completion

This recent change in bash-completion:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/maverick/bash-completion/maverick/revision/22

Introduces a regression (syntax error) that will cause ugly messages to be output at every login.

-bash /etc/bash-completion.d/apt: line 32: Syntax error near unexpected symbol << ; >>
-bash /etc/bash-completion.d/apt: line 32: 2> /dev/null ); $( apt-cache --no-generate pkgnames "lib$cur" \
-bash /etc/bash-completion.d/apt: line 33: Syntax error near unexpected symbol << ) >>
-bash /etc/bash-completion.d/apt: line 33: 2> /dev/null); )

I suspect it should read:
COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
                   2> /dev/null ; apt-cache --no-generate pkgnames "lib$cur" \
                   2> /dev/null ) )

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.