Red Hat Bugzilla – Bug 490322
bash no longer complete filenames with spaces in them
Last modified: 2014-01-12 19:08:30 EST
Description of problem:
bash in rawhide no longer offers completion for a directory named 'a b c' when I type "a\ TAB". It used to on Fedora 10.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mkdir 'a b c'
2. In an interactive shell type: ls a\ TAB
No completion offered.
bash offers the completion:
ls a\ b\ c/
Created attachment 335244 [details]
I am using this workaround patch for this particular issue. Not sure if it fits in the filedir logic there. Worksforme..
Ugh, sorry, I just notcied this is against bash. Plain bash filename with spaces completion works for me here. Current bash-completion in rawhide, messes up with it, and that previous patch is for it.
Yanko, I uninstalled bash-completion and the bug indeed went away. Thanks! I'll re-file this bug against bash-completion then.
Completion fails on filenames with spaces in them when:
is installed. It works in plain bash.
I can't reproduce with bash 3.2 and don't have a bash 4 setup available right now. Bug forwarded upstream at http://alioth.debian.org/tracker/index.php?func=detail&aid=311544&group_id=100114&atid=413095
I updated bash-completion (bash-completion-1.0-1.fc11.noarch, bash-4.0-5.fc11.x86_64) and this bug is still present.
From Ville's upstream bug report, I understand we're waiting for a change effecting 'quote_readline' in bash, just wanted to see if you guys decided to integrate the workaround before that's fixed ;)
The workaround would obviously be only applicable to bash 4.x. Meanwhile, a different fix has been committed to upstream master branch. It should have pretty much the same effect as the patch in comment 1, but could you test it anyway just to be sure and let me know if it fixes the issue?
The patch works for my test case :)
Thanks for testing. The patch is included in 1.0-2.