All recent builds of the app-shells/bash-completion do not correctly handle \ escape characters. Due to usual BASH problems of needing a \\ sequence to mangle down to \. Reproducible: Always Steps to Reproduce: 1. mkdir -p ~/"test test/test test" 2. type cd ~/test 3. attempt tab completion of path Actual Results: Tab completion will fail at the first space character. User will be unable to complete the full path. Expected Results: As the path is (presumably) unique - it should be fully tab completable. This is fixed in the Upstream git tree master.
Created attachment 398770 [details, diff] bash-completion-2.1-r91-bash-4.3.patch I've tested this patch and it applies cleanly to: app-shells/bash-completion-2.1_p20141224.ebuild app-shells/bash-completion-2.1-r91.ebuild app-shells/bash-completion-2.1-r92.ebuild app-shells/bash-completion-2.1-r93.ebuild Not required for: app-shells/bash-completion-9999.ebuild (it's now merged) I've not tested it on: <app-shells/bash-completion-2.1-r91.ebuild The patch is from the ARCH bash-completion package - here... https://projects.archlinux.org/svntogit/packages.git/plain/trunk/bash-4.3.patch?h=packages/bash-completion I've added patched ebuilds to my layman overlay: https://github.com/bobwya/bobwya/tree/master/app-shells/bash-completion
Can confirm that applying the patch to 2.1_p20141224 fixes the problem for me. Thanks Bob Wya.
Confirmed for me too (bug and patch)
The patch works for me too, and solves the bug.
commit 5ba926b (HEAD, master) Author: Patrice Clement <monsieurp@gentoo.org> Date: Sun Jan 10 21:05:57 2016 +0000 app-shells/bash-completion: Add patch to fix completion with escape characters. Fixes bug 543100. Package-Manager: portage-2.2.26 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> create mode 100644 app-shells/bash-completion/bash-completion-2.1-r94.ebuild create mode 100644 app-shells/bash-completion/files/bash-completion-2.1-escape-characters.patch
(In reply to Bob Wya from comment #0) > This is fixed in the Upstream git tree master. This patch is not included in the latest upstream git master as of 9cbd68becbd728d5fda88a6f456c4c72eac92ec8. Could you please file a bug report upstream and make it happen?
*** Bug 561682 has been marked as a duplicate of this bug. ***
Reported upstream: https://alioth.debian.org/tracker/index.php?func=detail&aid=315291&group_id=100114&atid=413095 An account is required to view it though…
(In reply to Louis Sautier from comment #8) > Reported upstream ... Thanks :-)