Package: schroot
Version: 1.6.10-3
Severity: normal

Hi,

bash completion is completely broken with schroot 1.6.10-3

$ schroot <TAB>-bash: completion: function `_schroot' not found

I think this is because the schroot bash completion uses the "have"
function. This function is only available for static bash completions
loaded from /etc/bash_completion.d. Dynamically loaded completions from
/usr/share/bash-completion/completions do not get this function and must
instead use "_have".

Running this is enough to fix it:
sed -i 's/have schroot/_have schroot/' \
 /usr/share/bash-completion/completions/schroot

Thanks,
James

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to