[lxc-devel] [lxc/master] Use external API of bash completion

traylenator on Github lxc-bot at linuxcontainers.org
Mon Jan 23 10:16:04 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 479 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170123/ea734c6d/attachment.bin>
-------------- next part --------------
From 77bb7b2dd2fe6bcb275733c84aeb930ea4336044 Mon Sep 17 00:00:00 2001
From: Steve Traylen <steve.traylen at cern.ch>
Date: Mon, 23 Jan 2017 11:12:55 +0100
Subject: [PATCH] Use external API of bash completion

The _have method of bash completion is internal
and have should not  be used.

In particular when using old versions of bash
completion the _have method does not even
exist.
---
 config/bash/lxc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/bash/lxc.in b/config/bash/lxc.in
index 7dcf302..ebd49bb 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" ) )
     }


More information about the lxc-devel mailing list