Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78922

Summary: equery completes on directories with the same name of a subcommand instead of the subcommand itself
Product: Gentoo Linux Reporter: Aaron Walker (RETIRED) <ka0ttic>
Component: [OLD] UnspecifiedAssignee: Gentoo Shell Tools project <shell-tools>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aaron Walker (RETIRED) gentoo-dev 2005-01-21 02:39:46 UTC
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 Aaron Walker (RETIRED) gentoo-dev 2005-01-28 02:35:50 UTC
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 Aaron Walker (RETIRED) gentoo-dev 2005-02-01 04:46:07 UTC
Will be fixed next gentoo-bashcomp release.
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-02-04 04:51:28 UTC
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.