From 1bcfd005790654c0117b61507aa32a16416bd97e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 28 Aug 2014 16:09:06 +0200 Subject: [PATCH] virsh: inactive domains don't have an ID --- src/_virsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_virsh b/src/_virsh index 9f90867..3dee9c7 100644 --- a/src/_virsh +++ b/src/_virsh @@ -40,7 +40,7 @@ local -a args reply function _virsh-domains() { local -a out - out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9]## ##}%% *} ) + out=( ${${${${(f)"$(virsh list "$@")"}:#(---| Id)*}## #[0-9-]## ##}%% *} ) _describe -t domains "${${1#--}:-running} domains" out return $? }