[Bash-completion-devel] Bug#697513: bash-completion: wrong completion for dpkg-query's -W|--show
Luca Capello
luca at pca.it
Sun Jan 6 13:07:10 UTC 2013
Package: bash-completion
Version: 1:2.0-1
Severity: normal
File: /usr/share/bash-completion/completions/dpkg-query
Tags: patch
Usertags: debian-packaging
Hi there!
According to `man dpkg-query`, -W|--show works as -l|--list, not on
(u)debs, here is the patch:
--8<---------------cut here---------------start------------->8---
--- /usr/share/bash-completion/completions/dpkg.ORG 2013-01-06 13:38:14.889146989 +0100
+++ /usr/share/bash-completion/completions/dpkg 2013-01-06 13:47:45.699787458 +0100
@@ -52,9 +52,8 @@
fi
case $prev in
- -c|-i|-A|-I|-f|-e|-x|-X|-W|--install|--unpack|--record-avail| \
- --contents|--info|--fsys-tarfile|--field|--control|--extract| \
- --show)
+ -c|-i|-A|-I|-f|-e|-x|-X|--install|--unpack|--record-avail| \
+ --contents|--info|--fsys-tarfile|--field|--control|--extract)
_filedir '?(u)deb'
return 0
;;
@@ -62,7 +61,7 @@
_filedir -d
return 0
;;
- -s|-p|-l|--status|--print-avail|--list)
+ -s|-p|-l|-W|--status|--print-avail|--list|--show)
COMPREPLY=( $( apt-cache pkgnames "$cur" 2>/dev/null ) )
return 0
;;
--8<---------------cut here---------------end--------------->8---
Thx, bye,
Gismo / Luca
-- System Information:
Debian Release: 7.0
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.7-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bash-completion depends on:
ii bash 4.2+dfsg-0.1
ii dpkg 1.16.9
bash-completion recommends no packages.
bash-completion suggests no packages.
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/share/bash-completion/completions/dpkg (from bash-completion package)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20130106/68e46f7d/attachment.pgp>
More information about the Bash-completion-devel
mailing list