bash ls tab completion broken for files/dirs with spaces in name
Bug #883268 reported by
Dan Kegel
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running updated ubuntu 11.10, tab completion fails to escape spaces in filenames for some commands.
To repeat:
mkdir "abc def"
touch "abc def"/xyz
ls ab<TAB><ENTER>
Expected:
xyz
Observed:
ls: cannot access abc: No such file or directory
ls: cannot access def: No such file or directory
Also affects tab completion for 'touch', but not for 'echo' or when looking for commands.
This worked fine in ubuntu 11.04.
To post a comment you must log in.
This does not affect the 'cd' command's tab expansion.
Also, on the affected commands, a space instead of a slash is the last character of a directory completion.