Type "revdep-rebuild -i -L /lib/libz" and try to complete that. Expected: libz.so and its versioned derivatives listed as completions. Actual result: Nothing listed at all. Reason: the "-i" is considered to be the action here, not the "-L".
Created attachment 238467 [details, diff] cleanup _revdep_rebuild Cleaned up a lot of unused code in that function. Things seem to work better now. If there are remaining issues, you might consider calling _filedir from the .pre collection of completion helper functions.
Could you clean up the patch so it is easier to apply? It needs to be rebased to http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-bashcomp/
Created attachment 257005 [details, diff] Rebased patch (In reply to comment #2) > Could you clean up the patch so it is easier to apply? It needs to be rebased > to http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-bashcomp/ Rebased to take @GENTOO_PORTAGE_EPREFIX@ into account. It would be nice if there were a path of no more than three easy to find clicks from the package homepage, as eix prints it, to the source repository against which you want contributed patches. All I had to go by for my original patch was the tarball.
thx
+*gentoo-bashcomp-20101217 (17 Dec 2010) + + 17 Dec 2010; Jeremy Olexa <darkside@gentoo.org> + +gentoo-bashcomp-20101217.ebuild: + Version bump to fix bugs 311441, 327953