]> arthur.barton.de Git - bup.git/commit
Work around extra space added by some readline versions.
authorPeter McCurdy <petermccurdy@alumni.uwaterloo.ca>
Fri, 16 Apr 2010 07:11:13 +0000 (03:11 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 3 Jun 2010 07:03:08 +0000 (03:03 -0400)
commit0e8b3a8509dd2de6805ec171f1724ef7ce477d72
tree5401fe45e1ab050713a97b0e54aabb751e6f30e9
parentb09ecb15e25cc3de7d152f66fe5cf07e3fa39926
Work around extra space added by some readline versions.

Apparently some versions of readline (6.0, for me) in some versions of
Python (Ubuntu's python2.6.4-0ubuntu1, for me) have an irritating bug
where they add an extra space to the end of all completions.  This is
particularly annoying for directory completions, as you can't
tab-complete your way into the contents of the directory.  See
http://bugs.python.org/issue5833

This patch, borrowed mostly from Trac, goes in and twiddles the
appropriate variable inside the readline library to make it stop doing
that.  See http://trac.edgewall.org/ticket/8711 for the discussion.

Signed-off-by: Peter McCurdy <petermccurdy@alumni.uwaterloo.ca>
cmd/ftp-cmd.py