aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/bash-completion
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-06 11:12:11 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-06 11:12:11 +0100
commited13686ad624de31154bdb2da781a5bdc6e39b8c (patch)
tree6094ef24b8f104fc44e4ae6327f1ebf4bbf5a5f9 /tools/libxl/bash-completion
parenta4c08349515acb96c5faab38098f6f68f0700433 (diff)
downloadxen-ed13686ad624de31154bdb2da781a5bdc6e39b8c.tar.gz
xen-ed13686ad624de31154bdb2da781a5bdc6e39b8c.tar.bz2
xen-ed13686ad624de31154bdb2da781a5bdc6e39b8c.zip
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@cn.fujitsu.com>
Diffstat (limited to 'tools/libxl/bash-completion')
-rw-r--r--tools/libxl/bash-completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/bash-completion b/tools/libxl/bash-completion
index 4b870e6602..15c62654c7 100644
--- a/tools/libxl/bash-completion
+++ b/tools/libxl/bash-completion
@@ -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