[Maverick] Errors whenever opening a terminal

Bug #586711 reported by Delan Azabani
This bug report is a duplicate of:  Bug #546794: Smarter lib* aware autocompletion?. Edit Remove
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Triaged
High
Unassigned

Bug Description

With the latest Maverick dev updates as of today, I've started receiving new errors at the top of any terminal I open:

bash: /etc/bash_completion.d/apt: line 32: syntax error near unexpected token `;'
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 token `)'
bash: /etc/bash_completion.d/apt: line 33: ` 2> /dev/null); )'

After these errors I am faced with the normal prompt and can continue working normally:

delan@delan-desktop:~$

Tags: patch
affects: ubuntu → bash-completion (Ubuntu)
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

confirmed in maverick.

Changed in bash-completion (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The fix is to remove the semi colons

--- apt 2010-05-28 11:45:21.000000000 +0200
+++ /etc/bash_completion.d/apt 2010-05-28 11:59:45.000000000 +0200
@@ -29,8 +29,8 @@
                 ;;
             *)
                 COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \
- 2> /dev/null ); $( apt-cache --no-generate pkgnames "lib$cur" \
- 2> /dev/null); )
+ 2> /dev/null ) $( apt-cache --no-generate pkgnames "lib$cur" \
+ 2> /dev/null) )
                 return 0
                 ;;
         esac

Revision history for this message
Delan Azabani (azabani) wrote :

Thanks Jean-Baptiste, that worked perfectly.

Revision history for this message
Jimmy Xu (jimmyxu) wrote :

Should this be a duplicate of bug #546794?

Revision history for this message
Anders Kaseorg (andersk) wrote :

Here is the patch I posted in bug #546794.

C de-Avillez (hggdh2)
tags: added: patch
Revision history for this message
Adam Conrad (adconrad) wrote :

Please see the mentioned bug for arguments about reverting this instead of fixing it. Tempted to revert it myself, but I'd rather have a consensus with the original uploader than start and archive war. :)

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.