[Bash-completion-devel] Bug#769399: Bug#769399: bash-completion: gets confused by curly braces

Ville Skyttä ville.skytta at iki.fi
Sat Nov 15 19:40:27 UTC 2014


The root cause is how bash itself handles curlies:

$ bash --norc
$ foo() { echo; echo "'$1'"; }
$ complete -D -F foo
$ r drivers/memory/tegra/tegra{-,124-e}mc.c dri<TAB>
'-,124-e}mc.c'

...i.e. bash thinks we're completing the command '-,124-e}mc.c'.

I don't think we can sanely fix this for real in bash completion, but
this commit will improve things -- no more errors, and minimal
filename completion activated:
http://anonscm.debian.org/cgit/bash-completion/bash-completion.git/commit/?id=32e6e49



More information about the Bash-completion-devel mailing list