[Bash-completion-devel] Bug#642526: bash-completion: please include completion for dpkg-query

Luca Capello luca at pca.it
Fri Sep 23 13:07:09 UTC 2011

Package: bash-completion
Version: 1:1.3-1
Severity: normal
File: /etc/bash_completion.d/dpkg
Tags: patch

Hi there!

Cc:ing the debian-dpkg@ mailing list for comments/suggestions.

As far as I understand it, dpkg-query is supposed to be the canonical
way to query the DPKG database:


However, bash-completion does not support dpkg-query, the patch is easy
(but I have not checked if all dpkg commands are reflected by

--8<---------------cut here---------------start------------->8---
--- a/bash_completion.d/dpkg
+++ b/bash_completion.d/dpkg
@@ -92,7 +92,7 @@ _dpkg()

-complete -F _dpkg dpkg dpkg-deb
+complete -F _dpkg dpkg dpkg-deb dpkg-query

 # Debian GNU dpkg-reconfigure(8) completion
--8<---------------cut here---------------end--------------->8---
Thx, bye,
Gismo /Luca

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-rc4-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.1-3

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information
-------------- 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/20110923/fbffcfa3/attachment.pgp>

More information about the Bash-completion-devel mailing list