Bug 78922 - equery completes on directories with the same name of a subcommand instead of the subcommand itself
Bug#: 78922 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: shell-tools@gentoo.org Reported By: ka0ttic@gentoo.org
Component: Unspecified
URL: 
Summary: equery completes on directories with the same name of a subcommand instead of the subcommand itself
Keywords:  InCVS
Status Whiteboard: 
Opened: 2005-01-21 02:39 0000
Description:   Opened: 2005-01-21 02:39 0000
When $COMP_CWORD == 1, and a directory (in ./) has the same name as one of the
subcommands, _equery() will choose the directory over the subcommand.

Eg:
$ ecd vixie
$ equery fil<TAB>  ==>  equery files/

------- Comment #1 From Aaron Walker (RETIRED) 2005-01-28 02:35:50 0000 -------
genone just informed me of another equery completion bug; posting here as a
reminder to myself, so I can kill both of these birdies with one stone.

equery needs to recognize (but not necessarily complete on) the short
subcommands (eg. belongs can also be 'b', changes -> 'c' and so forth).

------- Comment #2 From Aaron Walker (RETIRED) 2005-02-01 04:46:07 0000 -------
Will be fixed next gentoo-bashcomp release.

------- Comment #3 From Aaron Walker (RETIRED) 2005-02-04 04:51:28 0000 -------
pfft package name completion breakout is taking a lot longer than expected, so
I went ahead and diff'd the equery fixes from HEAD. 20050121-r1 is in the tree.