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-1.0.9~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf8913d50fcf6bc66d2709f1a2575c29cc27670;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" ) ) }