[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG][bash][auto completion] if COMPREPLY contents ":" auto completion d

From: Vasily Tarasov
Subject: [BUG][bash][auto completion] if COMPREPLY contents ":" auto completion doesn't work properly
Date: Wed, 20 Sep 2006 19:16:43 +0400
User-agent: Thunderbird (X11/20060831)

Hello all,

I suppose I've found a bug;
My bash version:
GNU bash, version 3.00.15(1)-release (i686-redhat-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
But I also have downloaded bash 3.1 and this bug is reproducible there to.

Actions to reproduce:
1) Create the file test.sh, that contents:

        local cur=${COMP_WORDS[COMP_CWORD]}
        COMPREPLY=( $( compgen -W "qwe:on qwe:off" -- $cur) )

complete -F _myfunc myfunc

2) Apply this file to the following bash environment:
. ./test.sh

3) Let's try it:
address@hidden $ myfunc
Press tab once:
address@hidden $ myfunc qwe:o
Press tab secondary:
address@hidden $ myfunc qwe:qwe:o

Note, that if ':" is replaced by something else, for exampe '!'
everything works:
address@hidden $ myfunc qwe!o
qwe!off  qwe!on
address@hidden $ myfunc qwe!off

Please, tell me is it a BUG? If it is  - will it be fixed, where I can
follow the progress (I've found no bugzilla for bash)?
If it isn't a bug, please, advice me a workaround.

Thanks for your work,
Vasily Tarasov.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]