On Thu, 26 Jun 2008 00:23:46 +0900, Morita Sho wrote: > $ gdb traceroute[TAB] > => traceroute traceroute-nanog.db traceroute6 > traceroute-nanog traceroute.db traceroute6.db > > $ gdb traceroute-[TAB] > => $ gdb traceroute-nanog Oh my... > > $ gdb traceroute-2[TAB] > => $ gdb traceroute-2.0.11/ I got it!! > > > BTW, can I make a suggestion? > I read the code for gdb completion, the _gdb function. > It calls compgen -c, I see that is a reason why gdb completes command names. > COMPREPLY=( $( compgen -c -- $cur ) ) > > Why not add -d option to compgen? > COMPREPLY=( $( compgen -d -c -- $cur ) ) > > I think adding -d option makes gdb completion better, especially on worst > case, e.g. "traceroute-[TAB]" in above.
Agreed, sorry for not thinking at this before :) Fixed in bzr. Thanks, David -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
signature.asc
Description: PGP signature
_______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
