[Bash-completion-devel] Bug#653386: bash-completion doesn't commands not first on line

Jakob Bohm jb-debbugs at wisemo.com
Tue Dec 27 15:27:01 UTC 2011


Package: bash-completion
Version: 1:1.2-3
Severity: normal

The current "stable" version of bash-completion does not do
command completion in many of the places where something else
prefixes the command, for example:

su johndoe -c sor<tab>
sh -c sor<tab>
bash -c sor<tab>
fakeroot sor<tab>
LC_ALL=C sor<tab>

etc. etc.

Expected result:

sor<tab> completes to sort in all 5 cases

Actual result:

Only the fakeroot sor<tab> case completes to fakeroot sort

sor<tab> does not complete to sort unless I happen to have a
file by that name in the current dir (or a user by that name for
su!).

(I know the LC_ALL=C variant has its own bug report with a claim
that this is somehow a bug in bash, but the others cannot be
attributed to that).

These used to work in the bash-completion that was part of the
bash package a few years back.

This bug is also present in oldstable (lenny).

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-bpo.2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
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





More information about the Bash-completion-devel mailing list