[Bug 123665] Re: tab completion fails when files have same prefix that ends in a quote/escapable-char
wojtas
dudwin at interia.pl
Tue Jun 17 08:28:11 UTC 2014
Hi,
I have the same problem with bash for ex in for loop
bash: for i in $(cat <TAB><TAB>
desktop ~ $ for i in $(bash: unexpected EOF while looking for matching `)'
bash: syntax error: unexpected end of file
dpkg -l |grep bash
ii bash 4.3-7ubuntu1 amd64 GNU Bourne Again SHell
ii bash-completion 1:2.1-4 all programmable completion for the bash shell
ii command-not-found 0.3ubuntu12 all Suggest installation of packages in interactive bash sessions
ii inxi 1.8.4-1 all System info script for irc (forked from infobash by locsmith)
in attachemnet I add the set -x
in bash
desktop ~ # dpkg -l |grep bash
ii bash 4.2-2ubuntu2 GNU Bourne Again SHell
ii bash-completion 1:1.3-1ubuntu8 programmable completion for the bash shell
I didn;t notice that problem
** Attachment added: "bash_problem"
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/123665/+attachment/4133144/+files/bash_problem
--
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