"equery belongs some_path" doesn't find any matches if some_path is a path which ends with a '/' this is not convenient since bash completion for pathes automatically adds a slash at the end. Reproducible: Always Actual Results: $ equery belongs /usr/src/linux-2.6.19-gentoo-r7/ [ Searching for file(s) /usr/src/linux-2.6.19-gentoo-r7/ in *... ] Expected Results: $ equery belongs /usr/src/linux-2.6.19-gentoo-r7/ [ Searching for file(s) /usr/src/linux-2.6.19-gentoo-r7/ in *... ] sys-kernel/gentoo-sources-2.6.19-r7 (/usr/src/linux-2.6.19-gentoo-r7)
$ svn commit -m "Trim trailing slash from query for equery belongs command (Bug #170981)" Sending ChangeLog Sending src/equery/equery Transmitting file data .. Committed revision 357. Thanks for the idea. The fix I just committed will strip a trailing slash from the path by default. Using the --full-regex option will cause it to still search with the trailing slash.
Fixed in gentoolkit-0.2.4_pre2