Package: bash-completion
Version: 1:1.99-3
Severity: important
Tags: patch

Typing `cc' and pressing tab any number of times does exactly nothing. It's
because it tried to autoload /usr/share/bash-completion/completions/cc, but
that doesn't define anything for GCC on Debian. Attached patch fixes it.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (980, 'testing'), (980, 'stable'), (500, 'unstable'), (500, 
'stable'), (200, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.3.0-lis64+ (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash  4.2-1

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/bash-completion/completions/gcc (from 
bash-completion package)

-- 
Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/
--- /usr/share/bash-completion/completions/cc.orig	2012-03-25 00:12:28.247673641 +0100
+++ /usr/share/bash-completion/completions/cc	2012-03-25 00:09:39.657678592 +0100
@@ -47,8 +47,8 @@
 } &&
 complete -F _gcc gcc g++ g77 gcj gpc &&
 {
-    cc  --version 2>/dev/null | grep -q GCC && complete -F _gcc cc  || :
-    c++ --version 2>/dev/null | grep -q GCC && complete -F _gcc c++ || :
+    cc  --version 2>/dev/null | grep -q 'GCC\|Debian' && complete -F _gcc cc  || :
+    c++ --version 2>/dev/null | grep -q 'GCC\|Debian' && complete -F _gcc c++ || :
 }
 
 # ex: ts=4 sw=4 et filetype=sh
_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Reply via email to