Autocompletion does not work correctly with special signs

Bug #1849090 reported by David Georg Reichelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
New
Undecided
Unassigned
gnome-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

The autocompletion of the terminal does not work correct for some special signs, e.g. if I edit a file by

    vim "A123\$B123#<test>_asd"

it is not possible to get it for autocompletion afterwards.

If I enter cat `A123\$B123#` and then hit tab two times, the file is display correctly, but if I then enter `<` and hit tab, it is completed to cat `A123\$B123#<A123\$B123#\<test\>_asd` which does not exist (so the full file is appended after `<`, not only the additional part.

I am using Ubuntu 18.04 with newest updates, including gnome-terminal 3.28.2.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

Autocompletion is done by the shell and its configs, not by the terminal.

Revision history for this message
David Georg Reichelt (dagere) wrote :

The bug only happens if a file with an equal prefix exists, e.g. after `vim 'A123$B123#asdasd'`.

I am using bash, but the problem also happens in zsh if I enter `A123\$B123\#`, hit tab, enter `<` and than hit tab again. It does not happen in zsh if I hit tab again and again and it switches between all files in the folder.

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.