[Bug 123665] Re: tab completion fails when files have same prefix that ends in a quote/escapable-char
Peter Cordes
peter at cordes.ca
Sat Nov 29 01:09:47 UTC 2014
The fix for bug 1387057 (correctly quoting $quoted) also fixes this.
$ compgen -f "1\'2"
1'2 2
@wojtas: completion inside $(command substitutions) is a separate bug.
Fixing the quoting bug didn't solve that. I see you already commented
in bug 1312243, which is what you're seeing.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/123665
Title:
tab completion fails when files have same prefix that ends in a quote
/escapable-char
Status in bash-completion package in Ubuntu:
Confirmed
Bug description:
Binary package hint: bash
If two (or more) files have the same prefix that ends in a quote
(double, single, take your pick), or some other escapable character
(back-slash is my test case), but then something else, tab completion
will fail! Here's how to reproduce:
1. Run: touch "1'1 1" "1'2 2"
2. Type: rm 1\'
3. Attempt to tab complete. bash will suggest the two files.
4. Give a hint by entering 1.
5. Attempt to tab complete again. bash is dumb-founded.
This occurs with single- and double-quotes, and backslashes -- but
*not* with with spaces. Other cases are untested.
Checked as problematic on feisty and gutsy.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/123665/+subscriptions
More information about the foundations-bugs
mailing list