Fixed by extra-quoting $xspec.
$ diff -u bash_completion /usr/share/bash-completion/bash_completion
--- bash_completion 2016-11-29 21:48:11.787460446 +0300
+++ /usr/share/bash-completion/bash_completion 2016-11-29 21:44:51.755183840
+0300
@@ -1845,7 +1845,7 @@
xspec="$matchop($xspec|${xspec^^})"
toks+=( $(
- eval compgen -f -X "!$xspec" -- "\$(quote_readline "\$cur")" | {
+ eval compgen -f -X "\'!$xspec\'" -- "\$(quote_readline "\$cur")" | {
while read -r tmp; do
[[ -n $tmp ]] && printf '%s\n' $tmp
done
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1637193
Title:
broken when directory contains files with exclamation mark (!)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1637193/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs