spurious trailing space after tab completion
Bug #470824 reported by
Peter Bienstman
This bug affects 25 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Invalid
|
Undecided
|
Unassigned | ||
Python |
Fix Released
|
Unknown
|
|||
Gentoo Linux |
Fix Released
|
Medium
|
|||
bash-completion (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
python2.6 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
When linked against readline6, Python's readline module inserts a space after tab completions. This differs from previous versions and in most cases is unwanted.
TEST CASE:
$ python
>>> import rlcompleter
>>> import readline
>>> readline.
>>> read<TAB>
Should expand to "readline" with no trailing space.
Original description:
Using IPython 0.10, when I use tab completion after cd, IPython inserts an extra space at the end of the trailing /. This makes it hard to use tab completion again to go into a subdirectory.
Strangely enough, after ls, no trailing space gets inserted.
Changed in ipython: | |
status: | New → Invalid |
Changed in python-defaults (Ubuntu): | |
status: | New → Triaged |
affects: | python-defaults (Ubuntu) → python2.6 (Ubuntu) |
Changed in python2.6 (Ubuntu): | |
importance: | Undecided → Medium |
Changed in python: | |
status: | Unknown → New |
Changed in gentoo: | |
status: | Unknown → Confirmed |
summary: |
- spurious trailing space after tab completion in cd + spurious trailing space after tab completion |
description: | updated |
Changed in python2.6 (Ubuntu): | |
status: | Triaged → Fix Released |
tags: | added: regression-release |
description: | updated |
Changed in gentoo: | |
status: | Confirmed → Fix Released |
Changed in gentoo: | |
importance: | Unknown → Medium |
Changed in python: | |
status: | New → Fix Released |
Changed in bash-completion (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
On Mon, Nov 2, 2009 at 4:11 PM, Peter Bienstman
<email address hidden> wrote:
> Public bug reported:
>
> Using IPython 0.10, when I use tab completion after cd, IPython inserts an extra space at the end of the trailing /. This makes it hard to use tab completion again to go into a subdirectory.
> Strangely enough, after ls, no trailing space gets inserted.
Yeah, the problem is that karmic broke readline in this respect again.
Workaround is doing
greedy_cd_completer = True
in ipy_completers.py
-- tinyurl. com/vainio
Ville M. Vainio
http://