Bash completion doesn't work on files with a space

Bug #430817 reported by Nicolas Valcarcel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: bash-completion

When having a file with a space on it, bash completion fails. Scenario:
"file1"
"file 2"
$fi<tab>
$file<tab><tab>
file1 file 2
$file\ <tab> # Nothing happens

Tested in karmic using terminator, gnome-terminal and serial console (<Cntrl><Alt><F1>). Colin said it worked without bash_completion, but fails with bash_completion.

Revision history for this message
Alex Lourie (alourie) wrote :

As described it will not work. Use 'ls' command before file name to verify:

touch file1;
touch "file 2";

ls file<tab> works fine
ls file\ <tab> doesn't work.

Changed in bash-completion (Ubuntu):
status: New → Confirmed
Revision history for this message
Alex Lourie (alourie) wrote :

Although now, the additional check cleared this:

touch "alex 1 2 3";
rm alex<tab> works fine.

Running Karmic Alpha 5.

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

yes, it works fine when it's just one file, can you please test aswell:
$ls alex\ <tab>
i assume that won't work, the issue is when the space is escaped before the tab is pressed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.