Comment # 10 on bug 1229795 from BZZZZ DZZZZ
(In reply to Michael Pujos from comment #9)
> There is also this issue with directories with ':' in their name, which is
> frequent for OBS repos (for example home:user:branches:games):
> 
> Example:
> 
> mkdir test:lol
> cd test<TAB> 
> cd test\:lol/    (<= completion)
> 
> Slso there is problem with completion for files in such folders if a
> backlash does not precede the ':'   :
> 
> echo "TROLOLOL" > test:lol/blargh
> ls test:lol/<TAB>  (=> no completion)
> ls test\:lol/<TAB> (=> completion to test\:lol/blargh)

dummycmd test:test\:lol/<TAB>
dummycmd test:test\:lol/blargh (<= completion)

dummycmd test=test\:lol/<TAB>
dummycmd test=test\:lol/blargh (<= completion)

bash treats unescaped characters in $COMP_WORDBREAKS as boundaries for
completion

default $COMP_WORDBREAKS includes '=' and ':' (
https://github.com/bminor/bash/blob/142bbdd89e4d5bb62aea4469d1d2c24cf470afd8/bashline.c#L313
)

this is unrelated to bash-completion (non-builtin scripts)


You are receiving this mail because: