Package: bash-completion Version: 1:2.1-4 Severity: normal Hi,
it seems that curly braces aren't handled too well by bash-completion. See this example, with set -x for debugging, and hitting TAB after "git diff @{-1} -- dri": $ git diff @{-1} -- dri+ local compfile=./completions + [[ /usr/share/bash-completion/bash_completion == */* ]] + compfile=/usr/share/bash-completion/completions + compfile+='/-1}' + [[ -f /usr/share/bash-completion/completions/-1} ]] + complete -F _minimal '-1}' bash: complete: -1: invalid option complete: usage: complete <bla-bla...> When the @{-1} is quoted, "dri" is correctly expanded to "drivers". Another, similar breakage: $ r drivers/memory/tegra/tegra{-,124-e}mc.c dri+ local compfile=./completions + [[ /usr/share/bash-completion/bash_completion == */* ]] + compfile=/usr/share/bash-completion/completions + compfile+='/-,124-e}mc.c' + [[ -f /usr/share/bash-completion/completions/-,124-e}mc.c ]] + complete -F _minimal '-,124-e}mc.c' bash: complete: -,: invalid option complete: usage: complete <blabla...> The errors shows up in _completion_loader, but I'm not sure if things don't break earlier. Nikolaus -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.16-3-amd64 (SMP w/8 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages bash-completion depends on: ii bash 4.3-11 ii dpkg 1.17.21 bash-completion recommends no packages. bash-completion suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org