xl bash-completion available upstream, but not packaged

Bug #922167 reported by Todd Deshane
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xen-common (Ubuntu)

Bug Description

xen-unstable.hg# cat tools/libxl/bash-completion
# Copy this file to /etc/bash_completion.d/xl.sh

 local IFS=$'\n,'

 local cur opts xl

 if [[ $COMP_CWORD == 1 ]] ; then
  opts=`${xl} help 2>/dev/null | sed '1,4d' | awk '/^ [^ ]/ {print $1}' | sed 's/$/ ,/g'` && COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
  return 0

 return 0

complete -F _xl -o nospace -o default xl

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers