Package: apt-show-versions
Version: 0.15
Severity: normal
Hi,
The bash_completion file has dashes in the function name, which isn't
allowed in POSIX, and unsupported in Bash 2.
Just renaming _apt-show-versions () to _ap_show_versions () fixes it.
See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=304624#15
for a longer explanation.
The attached patch fixes the issue.
Thanks,
Emilio
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt-show-versions depends on:
ii apt 0.7.21 Advanced front-end for dpkg
ii libapt-pkg-perl 0.1.23 Perl interface to libapt-pkg
ii perl [libstorable-perl] 5.10.0-22 Larry Wall's Practical Extraction
apt-show-versions recommends no packages.
apt-show-versions suggests no packages.
-- no debconf information
--- apt-show-versions.bash_completion 2007-12-03 11:51:16.000000000 +0100
+++ apt-show-versions.bash_completion.new 2009-06-02 19:57:04.000000000
+0200
@@ -1,7 +1,7 @@
#-*-shell-script-*-
have apt-show-versions &&
-_apt-show-versions()
+_apt_show_versions()
{
local cur prev opts
@@ -48,4 +48,4 @@ _apt-show-versions()
return 0
fi
}
-complete -F _apt-show-versions -o filenames apt-show-versions
+complete -F _apt_show_versions -o filenames apt-show-versions