Permalink
Browse files

qinit: use compgen to determine available vms

  • Loading branch information...
1 parent 4ff707e commit d83cbdc8fa096e64da19da85e47d8225bb038cc5 @falconindy committed Jan 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 qinit
View
2 qinit
@@ -39,7 +39,7 @@ shift $(( OPTIND - 1 ))
if [[ -z $1 ]]; then
printf 'Available VMs:\n'
- printf ' %s\n' $(sed -n 's/^vm_\([^(;$]\+\).*/\1/p' "$machines")
+ compgen -A function -- vm_ | sed 's/^vm_/ /'
exit 0
fi

0 comments on commit d83cbdc

Please sign in to comment.