Subject: dput: bash completion sees commented-out hosts Package: dput Version: 0.9.2.17 Severity: normal Tags: patch
Here's a patch to fix the problem though I'm not 100% sure it is correct:
--- /etc/bash_completion.d/dput.orig 2005-03-24 18:16:47.000000000 +0100
+++ /etc/bash_completion.d/dput 2005-03-24 18:17:10.735046024 +0100
@@ -18,8 +18,8 @@
hosts=$(
{
- grep "\[.*\]" $HOME/.dput.cf 2> /dev/null | tr -d [] || /bin/true
- grep "\[.*\]" /etc/dput.cf 2> /dev/null | tr -d [] || /bin/true
+ grep "^\[.*\]" $HOME/.dput.cf 2> /dev/null | tr -d [] || /bin/true
+ grep "^\[.*\]" /etc/dput.cf 2> /dev/null | tr -d [] || /bin/true
} | grep -v '^DEFAULT$' | sort -u)
paroptions="$options $hosts"
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11.5
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages dput depends on:
ii debconf 1.4.46 Debian configuration management sy
ii gnupg 1.4.0-3 GNU privacy guard - a free PGP rep
ii python 2.3.5-2 An interactive high-level object-o
-- debconf information:
dput/config-file-format:
signature.asc
Description: This is a digitally signed message part

