[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xl: fix bash completion



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273140731 -3600
# Node ID 558ded57c950473fdb2899f31ce568a57df1f52f
# Parent  bf450c08f7f9c4e7e2549b6fd6d5fa009e307c19
xl: fix bash completion

Changeset 21263:9a12204ac0e4 changes the output format of "xl help"
which bash completion use, so update bash completion to compatible
with this.

Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx>
---
 tools/libxl/bash-completion |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r bf450c08f7f9 -r 558ded57c950 tools/libxl/bash-completion
--- a/tools/libxl/bash-completion       Thu May 06 11:10:02 2010 +0100
+++ b/tools/libxl/bash-completion       Thu May 06 11:12:11 2010 +0100
@@ -11,7 +11,7 @@ _xl()
        xl=xl
        
        if [[ $COMP_CWORD == 1 ]] ; then
-               opts=`${xl} help 2>/dev/null | sed 'n;d' | sed '1,2d' | awk 
'{print $1}' | sed 's/$/ ,/g'` && COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) 
)
+               opts=`${xl} help 2>/dev/null | sed '1,4d' | awk '{print $1}' | 
sed 's/$/ ,/g'` && COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
                return 0
        fi
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.