[Bash-completion-devel] Bug#616018: bash_completion adds a space at the end of every diretory name and other issues with completing (e.g. sudo)

Michal Hocko mstsxfx at gmail.com
Tue Mar 1 20:57:24 UTC 2011


Package: bash-completion
Version: 1:1.3-1
Severity: important

Hi,
since the last (? I really do not remember after which update but it was
quite recently) bash_completion is not working as expected. 

For example ls /e[TAB] expands into ls /etc[SPACE] while the directory
is apparently not empty. Other example is sudo. It used to auto-complete
sudo /etc/init.d/openvpn start O[TAB] to OpenvpnName but now it doesn't
do anything.

I have seen a similar issue on the Arch Linux forums
(https://bbs.archlinux.org/viewtopic.php?id=113158) but the proposed
solution (remove _filedir function definition from the
'/etc/bash_completion.d/acroread) didn't work.

What really works for me is to either downgrade to the stable version or
replace /etc/bash_completion file by the one from the stable release.
The diff between testing and stable version is, however, too big and the
only one that mentions sudo doesn't seem to be relevant so I assume a
deeper problem.

Is this a known issue? I do not see anything in the bug tracker. Is
there anything that would help with debugging?


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-rc6-00166-g493f335 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash                          4.1-3      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information

-- 
Michal Hocko





More information about the Bash-completion-devel mailing list