The problem is a lack of quoting in
/usr/share/bash_completion/bash_completion.

set -x revealed where the problem happens:  in a compgen -X -f.  $quoted
is used without quotes, so it expands, and you get the first of however
many glob expansions.

 There are two unquoted uses of $quoted in _filedir().  Fixing them
fixed my tab-expanding-globs problem.

 Don't forget to apply the fix for bug 1390061, too.  Another case of
lack of quoting leading to code that doesn't do what was intended.

** Changed in: bash-completion (Ubuntu)
       Status: New => Confirmed

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1387057

Title:
  wildcard incorrect completion

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1387057/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to