From: Keir Fraser Date: Thu, 6 May 2010 10:12:11 +0000 (+0100) Subject: xl: fix bash completion X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12247 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ed13686ad624de31154bdb2da781a5bdc6e39b8c;p=xen.git 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 --- 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