[Deborphan-devel] Bug#658773: deborphan: dpkg-completion doesn't work until a dpkg completion has been attempted

Mike Miller mtmiller at ieee.org
Wed Mar 7 03:43:03 UTC 2012


I just ran across this bug on my system.  I briefly poked in
/usr/share/bash-completion to see what the other dpkg/apt commands are
doing and I think something like the following is needed:

    COMPREPLY=( $( _xfunc dpkg _comp_dpkg_installed_packages "$cur" ) )

which should dynamically load the function from the "dpkg" file and
then call it.

-- 
mike





More information about the Deborphan-devel mailing list