tags 674084 + upstream
severity 674084 wishlist
quit

Hi Vincent,

Vincent Lefevre wrote:

[...]
> And if I do
>
> $ echo :0[TAB]
>
> then bash tries to complet on the files that start with "0".

I think this is by design.  The manual tells me:

        COMP_WORDBREAKS
                The set of characters that the readline library
                treats as word separators when performing word
                completion.

The default value of COMP_WORDBREAKS is $" \t\"'@><=;|&(:." (that's
space, tab, dq, sq, at, gt, lt, eq, ...).  This ensures that tab
completion will do the right thing for commands like

        PATH=/usr/bin:/foo/ba[TAB]

without requiring any logic more complicated than the word splitting
rules already built in to readline.  One can use

        echo \:0[TAB]

when a colon should be considered part of a path.

Hope that helps,
Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to