readline 6 breaks tab completion in trac-admin
|Reported by:||Remy Blank||Owned by:||Remy Blank|
Since I upgraded to readline 6, tab completion in
trac-admin is broken (or at least, it has become weird):
- When the current word completes to a single suggestion, two spaces are appended to the completed word instead of one. This is due to
trac-adminappending a space in that case, and readline appending a second one. Previously, readline did not append a space.
- If the code appending a space is removed from
trac-admin, completion of file and directory paths is still broken, as a space is appended e.g. after a
/, so for example
"/tm"is completed to
"/tmp/ "(with a trailing space), which completely defeats the purpose of completion.
I am not absolutely sure that this was introduced with readline 6, as I wasn't able to downgrade to version 5.2, but the upgrade was done shortly before I noticed the issue.