single completion possibility not recognised

Bug #162601 reported by Daniel Frey
2
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Using Gutsy Gibbon, all updates upto 2007-11-14 applied.

Problem is that the completion doesn't recognise files which just appeared while you are using the completion. To verify, open two terminals and go to an empty folder (the same empty folder for both terminals). In terminal one, type "less xyz", but don't hit TAB yet. Go to terminal two, type "touch xyzfoo", press ENTER. Go to window one, hit TAB and the command line is completed to "less xyzfoo ". This is OK.

The problem is this: In terminal one, type "less abc" and hit the TAB key (this is the difference!). Since no completion is available, nothing happens. Now go to terminal two and type "touch abcfoo", press ENTER. Go to terminal one and hit TAB again. It now doesn't complete the current command line, instead it offers a list of possible completions which has only one entry. This is IMHO not consistent.

The completion works again as soon as you modified the command line. Type BACKSPACE and "c", so the line looks again like "less abc", then hit the TAB key. Now the completion picks up the file and the line reads "less abcfoo " as it should.

Matthias Klose (doko)
Changed in bash:
importance: Undecided → Low
status: New → Confirmed
Mika Fischer (zoop)
Changed in bash:
status: Confirmed → Triaged
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.