The difference is that the bash prompt will escape "Foo Bar " to "Foo\ Bar\ ". When the cursor is at the end of "Foo Bar ", Term::ReadLine::Gnu thinks you're starting a new word. When the cursor is at the end of "Foo\ Bar\ ", bash realizes the begining of the word is the 'F'. Term::ReadLine::Gnu needs to use some sort of escape mechanism before it has any hopes of knowing whether you're completing "Foo Bar ", "Bar " or starting a new argument.
I don't have any solutions. I'm just giving an alternate description of the problem, in the hopes that it may yield an idea on how to solve it.
In reply to Re: tab-completion problems
by ikegami
in thread tab-completion problems
by nick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |