On Tue, 27 Dec 2011 16:27:01 +0100 Jakob Bohm <jb-debb...@wisemo.com> wrote: > 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
Current unstable (2.8-4) still has this problem. >, for example: > > su johndoe -c sor<tab> Completions for su are shipped by util-linux: # dpkg --search completions/su util-linux: /usr/share/bash-completion/completions/su I'll forward this bug report to them, with a suggestion (see below) on how to fix it. > sh -c sor<tab> I'm testing the following fix for the sh command: https://github.com/gftg85/bash-completion/commit/d317efc82e41c5a58cd7712785a23439f7bc3fae > bash -c sor<tab> The fix for sh does not work for bash, because bash uses the _longopt completion function, which is shared between many other commands, so I have to think of a way to work around this. > fakeroot sor<tab> > LC_ALL=C sor<tab> These work with bash-completion 1:2.8-4. Kind regards.