]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
bash completion: the 'have' command was deprecated in favor of '_have'
authorPeter Simons <simons@cryp.to>
Sat, 2 Jan 2016 16:53:07 +0000 (17:53 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:42:28 +0000 (17:42 -0500)
`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 <simons@cryp.to>
config/bash/lxc.in

index cbd1b79fe686e1095813a24eb29e60122bb1b670..344d5cb2acd87b618a13367ba63d5b833a1e7e03 100644 (file)
@@ -1,4 +1,4 @@
-have lxc-start && {
+_have lxc-start && {
     _lxc_names() {
         COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
     }