]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
bash completion: the 'have' command was deprecated in favor of '_have' 750/head
authorPeter Simons <simons@cryp.to>
Sat, 2 Jan 2016 16:53:07 +0000 (17:53 +0100)
committerPeter Simons <simons@cryp.to>
Mon, 11 Jan 2016 17:28:09 +0000 (18:28 +0100)
`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" ) )
     }