[Bash-completion-devel] Bug#463969: bash-completion: The bug seems to still present in 20080617.5

David Paleino d.paleino at gmail.com
Wed Jun 25 15:57:15 UTC 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080625/81b3a62a/attachment.pgp 


More information about the Bash-completion-devel mailing list