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

2014-11-15 Thread Ville Skyttä
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 driTAB '-,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

Re: [Bash-completion-devel] multiple directories in BASH_COMPLETION_COMPAT_DIR ?

2014-11-15 Thread Ville Skyttä
On Sun, Nov 2, 2014 at 7:23 PM, Raphaël raphael.d...@gmail.com wrote: Attached a quick patch. The patch does not apply against current git. Also, this stuff should be documented somewhere, README or doc/bash_completion.txt As personal completions could probably be stored in a versioned

[Bash-completion-devel] Bug#769462: Bug#769462: bash-completion broken for parameters of known programs not in $PATH

2014-11-15 Thread Ville Skyttä
losetup completion is shipped by util-linux, not bash-completion. I just sent a patch upstream that should address this particular issue: http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/10186 However other completions in util-linux may invoke commands (other than the one being