[Bash-completion-devel] robustness: var=$(cmd1) cmd2 -<tab>

Raphaël Droz raphael.droz+floss at gmail.com
Sun Dec 11 20:48:53 UTC 2011


Just found the following bug:

$ var=$(id) find -<tab>
bash: eval: line1: syntax error near unexpected « ) »
bash: eval: line1: `local cmd=id)'

There is a bug from bash (completions from `id` instead of `find`) but
bash-completion should be more robust to this.
I didn't dug further but some entry points for variables may probably be
sanitized (or at least quoted) a bit more.


regards



More information about the Bash-completion-devel mailing list