From: Peter Simons Date: Sat, 2 Jan 2016 16:53:07 +0000 (+0100) Subject: bash completion: the 'have' command was deprecated in favor of '_have' X-Git-Tag: lxc-2.0.0.beta2~66^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db8dd39a797f87f8b348f1b6b44953a25f3f170;p=thirdparty%2Flxc.git bash completion: the 'have' command was deprecated in favor of '_have' `bash-completion` version 2.1 and later no longer include the `have` command, and consequently the `lxc` competion file fails on such systems. The command is now called `_have`. Signed-off-by: Peter Simons --- diff --git a/config/bash/lxc.in b/config/bash/lxc.in index cbd1b79fe..344d5cb2a 100644 --- a/config/bash/lxc.in +++ b/config/bash/lxc.in @@ -1,4 +1,4 @@ -have lxc-start && { +_have lxc-start && { _lxc_names() { COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) ) }